NAME
mailstats - print statistics collected by sendmail
SYNOPSIS
/usr/etc/mailstats [ filename ]
DESCRIPTION
mailstats prints out the statistics collected by the
sendmail
program on mailer usage. These statistics are collected if
the
file indicated by the S configuration option of sendmail
exists.
The mailstats program first prints the time that the
statistics
file was created and the last time it was modified. It will
then
print a table with one row for each mailer specified in the
configuration file. The first column is the mailer number,
followed by the symbolic name of the mailer. The next two
columns
refer to the number of messages received by sendmail, and
the last
two columns refer to messages sent by sendmail. The number
of
messages and their total size (in 1024 byte units) is given.
No
numbers are printed if no messages were sent (or received)
for any
mailer.
You might want to add an entry
to /var/spool/cron/crontab/root to
reinitialize the statistics file once a night. Copy
/dev/null into
the statistics file or otherwise truncate it to reset the
counters.
FILES
/etc/sendmail.st default statistics file
/etc/sendmail.cf sendmail configuration file
/var/spool/cron/crontab/root
/dev/null
SEE ALSO
sendmail(8)
BUGS
Mailstats should read the configuration file instead of
having a
hard-wired table mapping mailer numbers to names.