Postfix: Delete Mail from Mailq

Just like other MTAs, Postfix stores mails in a queue to process them for sending. For whatever reason, one may want to delete a particular mail from the mail queue.

Using Postfix’s postsuper command, you can easily accomplish this task.

To delete mail from mail queue, you require its ID (mail id). This can easily be obtained by running the mailq command: mailq

You can now delete the mail by issuing the command: postsuper -d MailID where MailID is the ID as shown above. postsuper -D
To delete all the mails in the mailq, use the command postsuper -d ALL .

Related information

This entry was posted in Uncategorized by admin. Bookmark the permalink.

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>