Postfix Flush the Mail Queue

admin/ June 6, 2017/ Linux/ 0 comments

Postfix Flush the Mail Queue

 

Use the “sendmail -q” command to flush mail queue under Sendmail MTA. Under Postfix MTA

 

$ sudo postfix flush

OR

$sudo postfix -f

To see the entire mail queue use the below command.

mailq

To remove all mail from the queue, use the below command:

$ postsuper -d ALL

To remove all mails in the deferred queue, use the below command:

# postsuper -d ALL deferred

Leave a Reply