PDA

View Full Version : Postfix - Logging mail size for a certain domain


oninea
1st November 2007, 07:01
Hi, I am new to Postfix and humbly need help with logging. I need to be able to derive the total size (meaning the size in MB as opposed to the count or number) of mails a certain domain receives. My idea is this can be done through logging. Is it even possible to log the size of emails to a given domain? If so, how can I accomplish this?

If not, is there any other way to achieve this goal?

Thank you in advanced for the help / direction.

BTW, I am using Postfix on a FreeBSD machine. c:

falko
2nd November 2007, 18:30
You could write a procmail recipe that checks the size of each incoming mail (just as ISPConfig does to calculate the email traffic).