Created
February 25, 2015 21:27
-
-
Save dlangille/bf9d76e6ab14274e5256 to your computer and use it in GitHub Desktop.
Deleting MAILER DAEMON emails from a postfix mailq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mailq | grep MAILER-DAEMON | cut -f 1 -d ' ' | xargs -n 1 sudo postsuper -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mailq | grep MAILER-DAEMON | cut -f 1 -d ' ' | tr -d '*' | xargs -n 1 postsuper -d #remove active queue with end * on the postfix queue id