Show number of mails in queue

To show the number of mail in a Postfix queue, you can use this command:
postqueue -p | tail -n 1 | cut -d' ' -f5

Leave a Reply

Your email address will not be published. Required fields are marked *