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

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

How to enable inbound TLS(starttls) in Postfix with Signed Certificate from CA(LetsEncrypt)