Thursday, April 10, 2014

Install pflogsumm on postfix

To viewlog mail on postfix

#aptitude install pflogsumm

script on crontab -e

0 0 * * *       perl /usr/sbin/pflogsumm -e -d today /var/log/mail.log | mail -s 'Logwatch for Postfix on My Mail Server' email@domain.ltd
#0 0 * * *      perl /usr/sbin/pflogsumm -u 50 -h 50 --problems_first -d today /var/log/mail.log | mail -s "pflogsumm report `date` on My Mail Server" email@domain.ltd


Reference:
www.howtoforge.com
calomel.org

No comments: