PrePflog: Difference between revisions

From voipsupport
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
PrePflog tries to solve the issue of double counting of email statistics in Awstats or Pflogsumm.
PrePflog tries to solve the issue of double counting of email statistics in Awstats or Pflogsumm.


The double counting occurs when Postfix is used with an after queue content filter (like Amavisd-new). The email passes through postfix twice, once before handing off to the filter and then when the email is received back from the filter for final delivery or forwarding. Each passage through Postfix generates email log entries.
The double counting occurs when Postfix is used with an after queue content filter like Amavisd-new. The email passes through postfix twice, once before handing off to the filter and then when the email is received back from the filter for final delivery or forwarding. Each passage through Postfix generates email log entries.


It is a known issue that in this case Pflogsumm produced email statistics which were multiplied by two. No easy way of solving this in Pflogsumm is available.
It is a known issue that in this case Pflogsumm produced email statistics which were multiplied by two. No easy way of solving this in Pflogsumm is available.

Revision as of 16:06, 13 June 2016

What is it?

PrePflog tries to solve the issue of double counting of email statistics in Awstats or Pflogsumm.

The double counting occurs when Postfix is used with an after queue content filter like Amavisd-new. The email passes through postfix twice, once before handing off to the filter and then when the email is received back from the filter for final delivery or forwarding. Each passage through Postfix generates email log entries.

It is a known issue that in this case Pflogsumm produced email statistics which were multiplied by two. No easy way of solving this in Pflogsumm is available.

See https://jimsun.linxnet.com/downloads/pflogsumm-faq.txt FAQ 15.

This script sanitizes the log files to disregard the lines relating to the re-injection of the same message.

How do I get it?

The code for the project is hosted on github. Please see: PrePflog source code repository

PrePflog 0.4.1

Previous versions are archived for historical reference but are no longer maintained and should not be used: PrePflog previous versions

GPG signatures for the latest versions are available here PrePflog gpg signatures

Where can I get more information?