Postfix, how to count all outgoing emails?

Is it possible to calculate the total number of sent messages per day and save this value somewhere in a text file or in mysql?

I need to compare the number of letters sent from a website and letters sent directly or through email clients.

Thanks;)

+6
postfix-mta
source share
1 answer

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

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

+16
source share

All Articles