Sysadmin: How to delete specific messages from postfix queue

postfix
In case your server mailqueue is full of messages you want to delete, most of google found instructions are not correct – there is no mailq for postfix anymore.

There is postfixqueue tool that can be effectively used instead of mailq. So, this is how to delete specific messages from postfix queue matching pattern in one line:

Assuming that you are running it from root account. If you are running from user account you just need to insert sudo before postsuper command.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">