Host to Delete a Specific Email in Postfix on Linux

Author: , September 14th, 2017

root@outbound:/var/log # postqueue -p -Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——- 593E2FC69D 3970 Tue Sep 12 23:15:36 MAILER-DAEMON (connect to yourDomain.com[10.10.10.10]:25: Connection timed out) yourUser@yourDomain.com — 4 Kbytes in 1 Request. root@outbound:/var/log # postsuper -d 593E2FC69D postsuper: 593E2FC69D: removed postsuper: Deleted: 1 message root@outbound:/var/log # postqueue -p Mail queue is empty

How To Delete a Single Deferred Email in Postfix

Author: , January 6th, 2013

To view the Postfix deferred queue: postqueue -p To view a specific email: postcat -q {Queue ID} To delete a specific email: postsuper -d {Queue ID} Example of viewing the deferred queue and deleting a message: # postqueue -p -Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——- E15B9FC221 11627 Sun Jan 6 16:47:29 MAILER-DAEMON (connect to sight.mlorol.com[46.249.46.181]: […]

How To Flush The Mail Queue In Postfix

Author: , December 13th, 2010

Flush the mail queue: # postfix flush OR # postfix -f View the mail queue: # mailq Delete all mail from the queue: # postsuper -d ALL Delete all mails in the deferred queue: # postsuper -d ALL deferred