Bash it! - Number of messages in Postfix queue

| Posted: - Last updated:
| Tagged blog features linux bash bash it shell postfix scripting mail server queue email messages
| ~100wrds (~1min)

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.

My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.

Was this post helpful to you? Why not ☕ Buy me a coffee or use Brave Browser to send a tip.