15

Which is best Postfix Log analyzer? We are looking for good log analyzer for postfix. We need to analyze the following

  1. How many mails queued ?
  2. How many mails not delivered ?
  3. Why mails are not delivered ?

And is it possible to view the subject for the all mail status instead of message id? I mean to review the status of the single mail.

We are using Sawmill analyzer now. But the management is not satisfied with the report from the sawmaill, since its missing single message status and subject.

Anto Binish Kaspar
  • 1,322
  • 1
  • 14
  • 20

2 Answers2

20

Inspired by aimfeld, pflogsumm is really better and simpler to use:

Just install it using following commands. For Debian/Ubuntu (https://packages.debian.org/sid/pflogsumm):

apt-get install pflogsumm

For RedHatLinux/RHEL, CentOS, Fedora:

yum install postfix-pflogsumm

Example usage, get today's summary by:

pflogsumm -d today /var/log/mail.log

good ref: https://calomel.org/pflogsumm.html

Links to documentation:

https://linux.die.net/man/1/pflogsumm

computingfreak
  • 4,939
  • 1
  • 34
  • 51
Robert
  • 1,964
  • 1
  • 22
  • 22
  • 1
    Important note from the FAQ. If you're processing multiple mail.log files at the same time, make sure to use `pflogsumm \`ls -rt /var/log/maillog*\``. pflogsumm relies on log messages "arriving" in the order in which they were created. Source: https://jimsun.linxnet.com/downloads/pflogsumm-faq.txt – xorinzor Sep 09 '22 at 07:24
19

I've used http://jimsun.linxnet.com/postfix_contrib.html before. Give it a try =) may help you with what you need.

Eduardo Romero
  • 1,159
  • 8
  • 10
  • 5
    Consider setting up a daily cronjob to send you an e-mail report, e.g. 0 9 * * * /usr/local/bin/pflogsumm.pl -d yesterday --problems_first /var/log/maillog | mail -s "yesterday's mail activity" you@domain.com – aimfeld Jan 18 '12 at 10:34
  • 5
    apt-get install pflogsumm – CoKe Oct 12 '15 at 07:35
  • This really is a great mail log analyzer! – badsyntax Feb 26 '16 at 20:55
  • I just recommend my tool for filtering output to pflogsumm - https://github.com/brablc/postfix-tools/blob/master/pflogrep . Tried to get it to http://jimsun.linxnet.com/postfix_contrib.html but no response. – brablc Apr 23 '18 at 20:19