Zhou, Yan wrote:
Hi There,
How do you gather statistics for messages delivered and processed via
Postfix (both inbound and outbound)? 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 have seen some options relying on passing the maillog file, I wonder
if there is any other option?

Thanks,
Yan





Confidentiality Notice: The information contained in this electronic 
transmission is confidential and may be legally privileged. It is intended only 
for the addressee(s) named above. If you are not an intended recipient, be 
aware that any disclosure, copying, distribution or use of the information 
contained in this transmission is prohibited and may be unlawful. If you have 
received this transmission in error, please notify us by telephone (513) 
229-5500 or by email (postmas...@medplus.com). After replying, please erase it 
from your computer system.

You have to write script or download something.


external : grep on "relay=" and sent excluding local domains.
internal : grep on "relay=local" or where ever the mail store is.

cut, sort and uniq work well for this in Bash.


Reply via email to