devroom.io/drafts/2007-11-15-bash-it-number-of-messages-in-postfix-queue.md

26 lines
516 B
Markdown
Raw Normal View History

2013-03-22 22:53:57 +00:00
---
title: "Bash it! - Number of messages in Postfix queue"
kind: article
slug: bash-it-number-of-messages-in-postfix-queue
created_at: 2007-11-15
tags:
- 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.
<pre lang="bash">postqueue -p | tail -n 1 | cut -d' ' -f5</pre>
Feel free to post any updates or improvements.