Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:27
Show Gist options
  • Save rushipkar90/e816d59a0f4e5c490c1a to your computer and use it in GitHub Desktop.
Save rushipkar90/e816d59a0f4e5c490c1a to your computer and use it in GitHub Desktop.
cleanrootmail.sh
#!/bin/sh
/usr/sbin/exiqgrep -i -r root@`hostname`| xargs /usr/sbin/exim -Mrm > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment