Skip to content

Instantly share code, notes, and snippets.

@simonswine
Last active August 29, 2015 14:01
Show Gist options
  • Save simonswine/615c37a0a8836cb32239 to your computer and use it in GitHub Desktop.
Save simonswine/615c37a0a8836cb32239 to your computer and use it in GitHub Desktop.
Mail.log Debian Postfix Analyzer for Gmail v6 trouble
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