User Tools

Site Tools


internet:mail:postfix_log_analysis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internet:mail:postfix_log_analysis [2016/09/06 18:29]
gcooper
internet:mail:postfix_log_analysis [2016/09/06 18:49] (current)
gcooper
Line 1: Line 1:
 ====== Postfix Log File Anaysis ====== ====== Postfix Log File Anaysis ======
 +
 +https://calomel.org/pflogsumm.html
  
 These systems use Postfix as the MTA: These systems use Postfix as the MTA:
Line 19: Line 21:
  
 ===== Basic Use ===== ===== Basic Use =====
 +
 +FIXME Needs verification and expansion
  
 Print today's summary to the console: Print today's summary to the console:
Line 26: Line 30:
 </file> </file>
  
 +Generate log summary for yesterday:
  
 +<file>
 +perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog
 +</file>
 +
 +Use ''cron'' to send mail log summary at AM 1:00 everyday to ''root'':
 +
 +<file>
 +00 01 * * * /usr/bin/perl /usr/sbin/pflogsumm -e -d yesterday /var/log/maillog | mail -s 'Logwatch for Postfix' root
 +</file>
internet/mail/postfix_log_analysis.1473208142.txt.gz · Last modified: 2016/09/06 18:29 by gcooper