Get updates via: rss | twitter | email

Flush Postfix Queue

Written by
Date: 2014-09-07 16:45:20 00:00


How to flush the queue of Postfix

Q. How can I send all emails in queue on Postfix from command line?

A. If you are using Postfix as your MTA on a Linux, Mac OS X or Unix server, and for some reason there are a lot emails on the queue, you can try to send all of them with:

postfix -f

That will try to send all emails stuck, if there is a problem, you can check the logs for the cause.

cat /var/log/mail.log

Once the problem is solved you can try postfix -f again, and check the queue with:

mailq