Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created February 25, 2015 21:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/bf9d76e6ab14274e5256 to your computer and use it in GitHub Desktop.
Save dlangille/bf9d76e6ab14274e5256 to your computer and use it in GitHub Desktop.
Deleting MAILER DAEMON emails from a postfix mailq
mailq | grep MAILER-DAEMON | cut -f 1 -d ' ' | xargs -n 1 sudo postsuper -d
@idwowrack
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment