Quick Tip: How to Check Total Number of Mails in Postfix Queue

Exim provides a quick way to check the total number of mails in the queue. This is done using the exim -bpc Although, this is not the same for postfix. Postfix doesn’t come with an easy way to do that.

How to Check Total Number of Mails in Postfix Queue

A quick tip on what I use to check the postfix queue number is the following command:

# mailq | tail -n 1
-- 6899 Kbytes in 1518 Requests.

Basically, postfix returns the queue statistics at the end of the queue listing command. We are simply tailing that to find the number.

 

One thought on “Quick Tip: How to Check Total Number of Mails in Postfix Queue”

  1. (delivery temporarily suspended: lost connection with smtp.strato.de[81.169.145.133] while receiving the initial server greeting)

    (lost connection with smtp.strato.de[81.169.145.133] while receiving the initial server greeting)

    am getting a error like this not a single mail was going, not able to get the solution. please guide me to get the solution.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.