Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 11/11/11 00:00:00 infractor@example.com -> user@anothercompany.com
- 11/11/11 00:00:01 infractor@example.com -> user2@anothercompany2.com
- 10/10/11 00:00:00 user@anothercompany.com -> infractor@example.com
- 10/10/11 00:00:01 user2@anothercompany2.com -> infractor@example.com
- Sep 13 16:15:57 server postfix/qmgr[18142]: B35CB5ED3D: from=<infractor@example.com, size=10755, nrcpt=1 (queue active)
- Sep 13 16:15:57 server postfix/smtpd[32099]: disconnect from localhost[127.0.0.1]
- Sep 13 16:15:57 server postfix/smtp[32420]: 58C3E5EC9C: to=<user@anothercompany.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.4, delays=0.01/0/0/1.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=32697-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B35CB5ED3D)
- Sep 13 16:15:57 server postfix/qmgr[18142]: 58C3E5EC9C: removed
- Sep 13 16:15:57 server postfix/smtp[32379]: B35CB5ED3D: to=<user@anothercompany.com>, relay=mail.anothercompany.com[123.123.123.163]:25, delay=0.06, delays=0.03/0/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 77D0EB6C025)
- Sep 13 16:15:57 server postfix/qmgr[18142]: B35CB5ED3D: removed
- perl maillogconvert.pl standard < /var/log/mail.log > result.log
- perl maillogconvert.pl [standard|vadmin] [year] < logfile > output
- pflogrep infractor@example.com /var/log/maillog
- pflogrep infractor@example.com /var/log/maillog | pflogsumm
- 11/11/11 00:00:00 infractor@example.com -> user@anothercompany.com
- 11/11/11 00:00:01 infractor@example.com -> user2@anothercompany2.com
- # awk '/from=infractor@example.com/ { print $1, $2, $3, $7, $8 }' /var/log/maillog
- 10/10/11 00:00:00 user@anothercompany.com -> infractor@example.com
- 10/10/11 00:00:01 user2@anothercompany2.com -> infractor@example.com
- # awk '/infractor@example.com/ { print $1, $2, $3, $7, $8 }' /var/log/maillog
Add Comment
Please, Sign In to add comment