Skip to content

Instantly share code, notes, and snippets.

@deviousway
Created November 30, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviousway/d0ad3ccef9882869c6e876803b9ff43e to your computer and use it in GitHub Desktop.
Save deviousway/d0ad3ccef9882869c6e876803b9ff43e to your computer and use it in GitHub Desktop.
Exim Remove All messages From the Mail Queue
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
or
exim -bp | exiqgrep -i | xargs exim -Mrm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment