Created
September 29, 2015 19:59
-
-
Save mathse/81a65fdd134efe61521c to your computer and use it in GitHub Desktop.
find spamming users in mail.info log
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
for i in $(zgrep "postfix/smtp" mail.info* | grep "to=" | grep spamming | cut -f6 -d" " | sed 's/://g' | sort | uniq); do zgrep $i mail.info*| grep client; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment