procmail
[Top] [All Lists]

Re: Collecting Email Traffic Stats with Procmail

2002-04-19 14:27:23
On Fri, 2002-04-19 at 14:13, Terrence Martin wrote:
I was wondering if anyone has created a procmail rule, to be run from the 
system level (/etc/procmail) for collecting and logging e-mail stats. ie 
the amount of e-mail coming in. I want to be able to collect usernames, as 
well as a running total for the number of bytes sent to each mail box.


All mail on my system goes through /etc/procmailrc and is logged(of
course). I haven't actually set anything up for this specific use, but I
do know the tool 'mailstat' will properly go through a procmail log and
give you totals per user.

I use 'mailstat -k procmail.log' (-k as to not destroy the log file).

Sample report gives...Is this what you're looking for?

6899943      40 /var/spool/mail/chrism
5436269      29 /var/spool/mail/davec
3708305       4 /var/spool/mail/davek

Hope this helps.

-- 
Myles Williams
Systems Administrator
Polaris Engineering Ltd. 
www.polariseng.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail