How to check Postfix queue size or find the count of messages in queue

mailq | grep -c "^[A-Z0-9]"

You can also grep the last line :

mailq | tail -1


Popular posts from this blog

StatusDnsQueryFailed resolving domain

How to include Gmail's Feedback-ID header in DKIM signature

How to send emails over IPv4 with Postfix