Statistics mail server by Pflogsumm - Postfix

Hey,
I got some notes about… I hope it’s working with current linux version…

apt-get install pflogsumm
(or it’s possible to wget the script from the website on my first message)

Everyday it will scan the mail server log + send a mail to a @mail address, just before 00:00
as root :
crontab -e
Then add this to your crontab :

# STATS MAIL SERVER pflogsumm
59 23 * * * /usr/sbin/pflogsumm -u 5 -h 5 -d today /var/log/mail.log | mail -s "Postfix Report of `date`" yourmail@domain.tld

(the “date” variable will write the current day to the mail title)

2 Likes