From: Lars Hecking (lhecking at domain nmrc.ucc.ie)
Date: Thu 13 May 1999 - 18:31:14 IST
Dave Airlie writes:
> I don't suppose anyone has a script or something similiar that
> counts the number of e-mails and size, that pass through sendmail within a
> specified time-period, I'm sure the maillog contains the info, just
> wondering whether anyone has seen anything that parses it well?
Not directly. There are some links in the sendmail FAQ.
I am using a script named smtpstats, written by Bryan Beecher.
It prints the number of from/to mails on a per host basis, and
I think it should not be difficult to modify it to compute mail
size, accumulated and average.
sed -n 's/^.*, size=\([^,]*\),.*$/\1/p' for a start :)
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:12 GMT