Skip to content

Instantly share code, notes, and snippets.

@ai2ik
Last active April 6, 2017 14:29
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 ai2ik/322bef5f3c78e5c4b44c172ad3dc92df to your computer and use it in GitHub Desktop.
Save ai2ik/322bef5f3c78e5c4b44c172ad3dc92df to your computer and use it in GitHub Desktop.
# Get queue count
exim -bpc
# Display messages
exim -bp
# Display message headers
exim -Mvh <message-id>
# Display message body
exim -Mvb <message-id>
# Delete all messages in queue by domain
exim -bp|grep "<domain>"| awk {'print $3'}| xargs exim -Mrm
or
exim -bp| awk /domain/{'print $3'}| xargs exim -Mrm
# Delete all messages in queue
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