MAILSTATS(1) — Series 300 and 800 Only
NAME
mailstats − print mail traffic statistics
SYNOPSIS
mailstats
DESCRIPTION
Mailstats reads and interprets the sendmail statistics file, /usr/lib/sendmail.st, and then prints out the mail traffic statistics. If /usr/lib/sendmail.st exists, sendmail will collect statistics about your mail traffic and store them in the statistics file. This file does not grow.
Statistics are gathered on a per-mailer basis for each mailer defined in the sendmail configuration file. Statistics are kept on the number of messages and the number of bytes for all inbound and outbound traffic.
“grep ’^M’ /usr/lib/sendmail.cf” will show the definitions of the mailers (delivery agents) reported on by mailstats. The first one listed is mailer 0 , the second is mailer 1, etc.
DIAGNOSTICS
Mailstats generates error messages if the statistics file is not accessible or if the size of the statistics file has changed. The error messages are:
ERROR (mailstats): Stat file size has changed or is zero in length
The size of /usr/lib/sendmail.st has changed. Since the size of this file is supposed to remain constant, any change in size signifies that the file has been corrupted.
Open: /usr/lib/sendmail.st: No such file or directory
The file’s permissions are not set so that you can read it or the file does not exist.
/usr/lib/sendmail.st: Permission denied
The file’s permissions are not set so that you can read it.
EXAMPLES
Here is a typical example of mailstats command output:
Statistics from Fri Dec 6 12:34:47 1985
M msgsfr bytes_from msgsto bytes_to
0 216 318K 68 76K
3 80 108K 75 124K
4 0 0K 60 64K
This example shows that mailers 0, 3 and 4 have handled the given amounts of mail traffic since Friday, December 6th. Specifically, sendmail has sent 60 messages containing 64K bytes via mailer number 4, but hasn’t received any inbound messages via mailer number 4.
DEPENDENCIES
Implemented on the Series 300 and 800 only.
AUTHOR
UCB (University of California at Berkeley)
FILES
/usr/lib/sendmail.st mail traffic statistics file.
/usr/lib/sendmail.cf Sendmail configuration file.
SEE ALSO
Hewlett-Packard Company — June 06, 1988