Guest User

Untitled

a guest
Nov 6th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. 11/11/11 00:00:00 infractor@example.com -> user@anothercompany.com
  2. 11/11/11 00:00:01 infractor@example.com -> user2@anothercompany2.com
  3.  
  4. 10/10/11 00:00:00 user@anothercompany.com -> infractor@example.com
  5. 10/10/11 00:00:01 user2@anothercompany2.com -> infractor@example.com
  6.  
  7. Sep 13 16:15:57 server postfix/qmgr[18142]: B35CB5ED3D: from=<infractor@example.com, size=10755, nrcpt=1 (queue active)
  8. Sep 13 16:15:57 server postfix/smtpd[32099]: disconnect from localhost[127.0.0.1]
  9. 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)
  10. Sep 13 16:15:57 server postfix/qmgr[18142]: 58C3E5EC9C: removed
  11. 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)
  12. Sep 13 16:15:57 server postfix/qmgr[18142]: B35CB5ED3D: removed
  13.  
  14. perl maillogconvert.pl standard < /var/log/mail.log > result.log
  15.  
  16. perl maillogconvert.pl [standard|vadmin] [year] < logfile > output
  17.  
  18. pflogrep infractor@example.com /var/log/maillog
  19.  
  20. pflogrep infractor@example.com /var/log/maillog | pflogsumm
  21.  
  22. 11/11/11 00:00:00 infractor@example.com -> user@anothercompany.com
  23. 11/11/11 00:00:01 infractor@example.com -> user2@anothercompany2.com
  24.  
  25. # awk '/from=infractor@example.com/ { print $1, $2, $3, $7, $8 }' /var/log/maillog
  26.  
  27. 10/10/11 00:00:00 user@anothercompany.com -> infractor@example.com
  28. 10/10/11 00:00:01 user2@anothercompany2.com -> infractor@example.com
  29.  
  30. # awk '/infractor@example.com/ { print $1, $2, $3, $7, $8 }' /var/log/maillog
Add Comment
Please, Sign In to add comment