Bash it! - Number of messages in Postfix queue

15 November 2007
Tagged blog, features, linux, bash, bash it, shell, postfix, scripting, mail, server, queue, email, messages

Got bash? Here's a nice snippet that will return the number of messages currently in the postfix queue.

postqueue -p | tail -n 1 | cut -d' ' -f5

Feel free to post any updates or improvements.