mailstats(1M) — ADMINISTRATOR COMMANDS
NAME
mailstats − print statistics collected by sendmail
SYNOPSIS
/usr/ucb/mailstats [ −o ] [ −C cffile ] [ −f stfile ]
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. mailstats first prints the time that the statistics file was created. It will then print a table with one row for each mailer specified in the configuration file. The first column is the mailer number. The next two columns refer to the number of messages received by sendmail, and the next 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. The last column is the symbolic name of the mailer.
You might want to add an entry to /var/spool/cron/crontabs/root to reinitialize the statistics file once a night. Copy /dev/null into the statistics file or otherwise truncate it to reset the counters.
The following options are available:
−C Use an alternate configuration file. The default file is /usr/ucblib/sendmail.cf.
−f Use an alternate statistics file. The default is /usr/ucblib/sendmail.st
−o Do not print out the symbolic name of the mailer.
FILES
/var/spool/cron/crontabs/root
/dev/null
SEE ALSO
NOTES
If you null out the sendmail.st and then run mailstats the following message is displayed.
mailstats: file size has changed
— BSD Compatibility Package