Postfix how to count all outgoing emails? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question 开发者_运维技巧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 ;)
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
精彩评论