Viewing Statistics: mailstats
The mailstats program is supplied with the sendmail source distribution to provide a convenient way to print the contents of the statistics file. The output of the mailstats program varies depending on the version of sendmail installed. For V8.14 sendmail the output looks like this:
Statistics from Mon Jan 14 10:56:15 2002 M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis msgsqur Mailer 0 0 0K 4063 25765K 0 0 0 prog 3 267 336K 0 0K 0 0 0 local 5 4120 6188K 142 1652K 672 0 0 esmtp = == == == == == == == == == == == == == == == == == == == == == == == == == == == == == == T 4387 6524K 4205 27417K 672 0 0 C 4387 4205 672
The first line shows when the statistics file was
begun. The lines that follow show the number of
messages and the total size, in kilobytes, of those
messages, both received (msgsfr
and bytes_from
) and sent (msgsto
and bytes_to
) for each
delivery agent. V8.9 and above
sendmail also show the number
of rejected messages (msgsrej
) and discarded messages
(msgsdis
).
V8.13 and above also show the number of quarantined
messages (msgsqur
). The M
column shows the index into the
internal array of delivery agents, and the Mailer
column shows the
symbolic name. Note that if a delivery agent handled
no traffic, it is excluded from the report.
The last two lines show totals. The line that begins
with T
shows the
totals for the columns above. The line that begins
with C
shows totals for connections, the corresponding daemon-accept connections (inbound), ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.