User Tools

Site Tools


internet:mail:postfix_log_analysis

Postfix Log File Anaysis

https://calomel.org/pflogsumm.html

These systems use Postfix as the MTA:

  • Virtualmin
  • Zimbra

Ubuntu/Debian

apt-get install pflogsumm

CentOS 7

yum install postfix-perl-scripts

Basic Use

FIXME Needs verification and expansion

Print today's summary to the console:

nice -n 19 pflogsumm -d today /var/log/maillog | more

Generate log summary for yesterday:

perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog

Use cron to send mail log summary at AM 1:00 everyday to root:

00 01 * * * /usr/bin/perl /usr/sbin/pflogsumm -e -d yesterday /var/log/maillog | mail -s 'Logwatch for Postfix' root
internet/mail/postfix_log_analysis.txt · Last modified: 2016/09/06 18:49 by gcooper