Postfix how to count all outgoing emails?

Somebody picture Somebody · Oct 23, 2010 · Viewed 22.6k times · Source

Is it possible to count overall emails sent per day and save that value somewhere in a text file or in mysql?

I need to compare numbers of mails sent from website and mails sent directly or via mail clients.

Thanks ;)

Answer

Emil Vikström picture Emil Vikström · Oct 23, 2010

Yes, you can parse the log file to do that. There already exists a statistics tool for the Postfix log files called pflogsumm. Check it out here: http://jimsun.linxnet.com/postfix_contrib.html

Or try some of the other analysis tools listed on the Postfix website: http://www.postfix.org/addon.html#logfile