on
dns
technitium
ubuntu
- Get link
- X
- Other Apps
pflogsumm.pl is designed to provide an over-view of postfix activity, with just enough detail to give the administrator a "heads up" for potential trouble spots.
1. Install pflogsumm and bsd-mailx.
sudo apt-get install pflogsumm bsd-mailx
2. Test pflogsumm with postfix log.
pflogsumm /var/log/mail.log
3. Create cron job (/etc/cron.d/pflogsumm) to auto generate log summary via email at every 11:59PM. If you enable logrotate for your mail.log, make sure the cron job time occur before it.
MAILTO=""
59 23 * * * root /usr/sbin/pflogsumm -d today /var/log/mail.log | mail -s "Postfix Log Summary - $(date -I)" user1@mydomain.com -a "From: no-reply@mydomain.com"
4. Check the log summary email.
Comments