Postfix Email Queue Commands

To flush mail queue under Sendmail MTA
sendmail -q

postfix flush


postfix -f

To see mail queue, enter:

To remove all mail from the queue, enter:
postsuper -d ALL

To remove all mails in the deferred queue, enter:
postsuper -d ALL deferred

Display number of messages in linux mail queue
mailq | tail -n 1

If you just want to know the number of messages sitting in the deferred queue, then the following should get you a quick answer:

find /var/spool/postfix/deferred -type f | wc -l
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Why is hotmail Blocking/Junking my mail?

Because of Hotmail's extremely aggressive spam protection policies, senders may find valid...

Error 550 – “The recipient cannot be verified”

On servers running cPanel, you may find that mail sent to valid users it bounced back by...

How do I get my mail headers?

Retrieving email headers is a very important step in reporting or troubleshooting any email...

535 authentication failed in roundcube

SMTP error 535 authentication failed in roundcube SMTP Error (435): Authentication failed If you...

Delete all messages to and from a domain in exim queue

Use the ssh command below to remove all messages from and to a users domain.  This will help to...