2015-03-26 11:28:08 +00:00
|
|
|
+++
|
|
|
|
date = "2007-11-15"
|
|
|
|
title = "Bash it! - Number of messages in Postfix queue"
|
|
|
|
tags = ["Blog", "Features", "Linux", "BASH", "Bash IT", "shell", "postfix", "scripting", "mail", "server", "queue", "email", "messages"]
|
|
|
|
slug = "bash-it-number-of-messages-in-postfix-queue"
|
2017-09-11 12:20:15 +00:00
|
|
|
description = "How to get the number of messages in your Postfix queue."
|
2015-03-26 11:28:08 +00:00
|
|
|
+++
|
|
|
|
|
|
|
|
Got bash? Here's a nice snippet that will return the number of messages currently in the postfix queue.
|
|
|
|
|
|
|
|
<pre lang="bash">postqueue -p | tail -n 1 | cut -d' ' -f5</pre>
|
|
|
|
|
|
|
|
Feel free to post any updates or improvements.
|
|
|
|
|