Traditionally you use the “sendmail -q” command to flush mail queue under Sendmail MTA. Under Postfix MTA, just enter the following command 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





Leave a Reply

Your email address will not be published. Required fields are marked *

To submit solve the problem below *