Postfix Flush the Mail Queue

January 19th, 2010 | Posted by cahpct in Postfix - (0 Comments)

postfix-logoTraditional “sendmail -q” command flushes mail queue. Under Postfix, just enter the following to flush the mail queue

# postfix flush
OR
# postfix -f

To see mail queue, enter:
# mailq

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

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