mailstats(1M) TCP/IP 5.4R3.00 mailstats(1M)
NAME
mailstats - print sendmail statistics
SYNOPSIS
mailstats [-c] [-f file]
DESCRIPTION
Mailstats is used to collect statistics compiled by sendmail.
Statistics include, for each mailer defined in the sendmail.cf file,
number of messages to that mailer, number of kilobytes to that
mailer, number of messages from that mailer, number of kilobytes from
that mailer. The mailer is identified by its position in the
sendmail.cf file - the first mailer defined is listed by mailstats as
mailer 0, the second mailer defined as mailer 1, etc. Statistics are
printed for all mailers with non-zero msgsfr or msgsto values.
Sample output:
Statistics from Sun Apr 28 10:25:17 1991
M msgsfr bytesfrom msgsto bytesto
0 1 1K 0 0K
2 0 0K 1 1K
In the example above, the stats accumulated since April 28 are shown.
One message to sendmail has been received from mailer 0, and sendmail
has sent one message to mailer 2.
Options are:
-c Clear/initialize the accumulated statistics, and reset the
date value. This can only be done by a superuser (uid 0).
-f Use an alternate statistics file.
FILES
/etc/mailstats.st Contains statistics collected by sendmail and
stored (in binary form) for mailstats.
/etc/sendmail.cf Contains the mailer definitions.
SEE ALSO
sendmail(1C).
WARNINGS
If the sendmail.cf file is changed to include new mailer definitions
(or change the relative locations of the old mailer definitions)
mailstats -c should be run to reset the counters.
BUGS
Granularity of byte counts transferred is very low. Bytesfrom and
bytesto are rounded up to the nearest one kilobyte value - which
means a one byte message and a 1000 byte messages are both counted as
a kilobyte. Thus these statistics should be used as only a general
Licensed material--property of copyright holder(s) 1
mailstats(1M) TCP/IP 5.4R3.00 mailstats(1M)
indication of traffic through the various mailers.
Licensed material--property of copyright holder(s) 2