MAILSTATS(1) — Series 300 Only
NAME
mailstats − print mail traffic statistics
SYNOPSIS
mailstats
HP-UX COMPATIBILITY
Level: HP-UX/NONSTANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
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.
EXAMPLES
The following example output was produced by the mailstats command:
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 (as defined in /usr/lib/sendmail.cf), 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.
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:
Open: /usr/lib/sendmail.st cannot open file.
The file has incorrect access permissions set or the file does not exist.
File size changed.
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.
FILES
/usr/lib/sendmail.st mail traffic statistics file.
/usr/lib/sendmail.cf Sendmail configuration file.
SEE ALSO
Hewlett-Packard Company — December 25, 1986