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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment