Flush Postfix Mail Queue – This article will help you for flush or clear or delete emails from Postfix mail queue. This will also help your to delete emails from single mail queue or any specific email.
List All Emails
To list all emails in mailq use one of following commands.
# postqueue -p
Flush All Emails
To delete or flush all emails from Postfix mailq use following command.
# postsuper -d ALL
Flush Mails from Deferred Queue
If you want to all email which are deferred, use following command
# postsuper -d ALL deferred
Remove Specific Email
If you want to remove any specific email, you can do using following commands.
Search the ID of that email like below command
# postqueue -p | grep "[email protected]" 056CB129FF0* 5513 Sun Feb 26 02:26:27 [email protected]
# postuser -d