Skip to content

Instantly share code, notes, and snippets.

@mathse
Created September 29, 2015 19:59
Show Gist options
  • Save mathse/81a65fdd134efe61521c to your computer and use it in GitHub Desktop.
Save mathse/81a65fdd134efe61521c to your computer and use it in GitHub Desktop.
find spamming users in mail.info log
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