On 04/12/2011 05:34 PM, Zhou, Yan wrote:
Hi There,
How do you gather statistics for messages delivered and processed via
Postfix (both inbound and outbound)?
Use pflogsumm.pl - it's a standard of sorts.
http://linxnet.com/postfix_contrib.html
For instance, to show on a daily
basis, how many messages we have received from each domain, how many
messages we have delivered to each domain, etc.
I use awstats for that:
http://awstats.sourceforge.net/
You'll have to twiddle for a few hours to get it to do email, but it is
actually supported out of the box.
I have seen some options relying on passing the maillog file, I wonder
if there is any other option?
No.
You'll have to consider WHY you want these statistics - then focus on
getting exactly the data you require.
Nothing prevents you from sending all mail through a custom milter or
policy service that merely counts messages, after all.
--
J.