Added on Jun 28th, 2012 and marked as log mail postfix server

Using the Postfix Logging Summary tool it is possible to analyze the log file generated by Postfix.

apt-get install pflogsumm

To create a summary:

pflogsumm /var/log/mail.log

To send a weekly report, you can add this to the root’s crontab:

# After the log rotation use pflogsumm to generate an overview of
# the mail activities from the last week.
0      5       *       *       sun     /usr/sbin/pflogsumm /var/log/mail.log.1