Skip to content

Instantly share code, notes, and snippets.

@jms
Created May 22, 2014 04:20
Show Gist options
  • Select an option

  • Save jms/2a191e92fbe7ba7f4904 to your computer and use it in GitHub Desktop.

Select an option

Save jms/2a191e92fbe7ba7f4904 to your computer and use it in GitHub Desktop.
# flush queue
sendmail -q -v
find /var/spool/mqueue/* -type f -exec grep -irl “domainname.com” {} \; -exec rm -vf {} \;
# check queue
mailq
sendmail -bp
# http://www.cyberciti.biz/files/perl/qtool.pl.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment