mailstats(8) — Maintenance
OSF
NAME
mailstats − Displays statistics about mail traffic
SYNOPSIS
mailstats [-S file]
FLAGS
-S fileUse file as the input statistics file instead of /var/adm/sendmail/sendmail.st
DESCRIPTION
This command reads the information in the /var/adm/sendmail/sendmail.st file (or in the file specified with the -S flag), formats it, and writes it to standard output. Note also that you can change the location of the sendmail.st file by editing its pathname in the sendmail.cf file.
EXAMPLES
The format of the information is shown in the following example, in which the first field (M) contains a number that indicates the position of that mailer in the sendmail.cf file, starting at 0 (zero). For example, the first mailer in the sendmail.cf file corresponds to the number 0 in the mailstats display, the second mailer corresponds to the number 1, and so on.
Statistics from Wed Aug 29 16:42:25 1990
M msgsfr bytes_from msgsto bytes_to
1 50 77K 1 3K
6 43 59K 58 99K
The fields in the report have the following meanings:
MIndicates the position of the mailer in the sendmail.cf file.
msgsfrContains the number of messages received by the local machine from the indicated mailer.
bytes_fromContains the number of bytes in the messages received by the local machine from the indicated mailer.
msgstoContains the number of messages sent from the local machine using the indicated mailer.
bytes_toContains the number of bytes in the messages sent from the local machine using the indicated mailer. If sendmail transmits mail directly to a file, such as the dead.letter file or an alias target, the message and byte counts are credited to the prog mailer, as defined in the sendmail.cf file. However, mailstats will still default to var/adm/sendmail/sendmail.st.
FILES
/usr/sbin/mailstats
Specifies the command path
/var/adm/sendmail/sendmail.st
Contains system statistics
/var/adm/sendmail/sendmail.cf
Contains configuration information for sendmail
RELATED INFORMATION
Commands: sendmail(8)