Created
May 30, 2014 13:48
-
-
Save ruslankonev/d2e6fe41831f34ed8bd7 to your computer and use it in GitHub Desktop.
Clear Filed Mails from postfix and send to email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postqueue -p | egrep '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' > failsmail.txt | |
echo "filed mails" | mail -a failsmail.txt -s "SPAM emails" career2012.content@gmail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment