[Mimedefang] Counting mail traffic

Cormack, Ken kcormack at acs.roadway.com
Wed Apr 14 13:35:07 EDT 2004


> I tried to count mail traffic with MIMEDefang. Everything goes fine but
> sometimes i see empty strings in my maillog file, such as:
> Tue Apr 13 19:58:54 2004
> 42080
> There is no ip and recipient.
> How can i solve this problem?

Simply use the "mailstats" command.  It will give you output that you need.

Make sure your sendmail is configured with statistics enabled, by placing
the following line in your sendmail.mc file:

	define(`STATUS_FILE', `/etc/mail/statistics')

Create the statistics file using the following command, if it does not
already exist:

	touch /etc/mail/statistics

Then, every night, run the following two commands in a cron task, and let
the cron task mail you the results:

	mailstats
	> /etc/mail/statistics

Ken



More information about the MIMEDefang mailing list