Last active
August 29, 2015 14:01
-
-
Save simonswine/615c37a0a8836cb32239 to your computer and use it in GitHub Desktop.
Mail.log Debian Postfix Analyzer for Gmail v6 trouble
This file contains hidden or 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
cat /var/log/mail.info | grep relay=gmail | ruby -ne 'm=/^(\S+\s+\S+\s+\S+).*(relay=[^, ]+).*status=(\S+)(.*)$/.match($_); printf "%s %-8s %-60s %s\n", m[1], m[3], m[2], m[4]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment