How to configure mail log analyger on centos

 

Mail Log Analyger

[root@mail ~]# yum -y install postfix-pflogsumm
# display summary of yesterday’s maillogs

[root@mail ~]# perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog  [Detail Mail LOG]

Postfix log summaries for Jan 21

Grand Totals
————
messages
2 received
2 delivered
0 forwarded
0 deferred
0 bounced
2 rejected (50%)
0 reject warnings
0 held
0 discarded (0%)

14379 bytes received
14379 bytes delivered
1 senders
1 sending hosts/domains
2 recipients
1 recipient hosts/domains

Per-Hour Traffic Summary

time received delivered deferred bounced rejected
…………….
………….
………
[root@mail ~]# crontab -e

# send summary of maillog at AM 1:00 everyday to root

00 01 * * * perl /usr/sbin/pflogsumm -e -d yesterday /var/log/maillog | mail -s ‘Logwatch for Postfix’ root

Related posts

Leave a Comment