DOKK / manpages / debian 12 / sendmail-bin / mailstats.8.en
MAILSTATS(8) System Manager's Manual MAILSTATS(8)

mailstats - display mail statistics

mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile]

The mailstats utility displays the current mail statistics.

First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each mailer are displayed on a single line, each with the following white space separated fields:

The mailer number.
Number of messages from the mailer.
Kbytes from the mailer.
Number of messages to the mailer.
Kbytes to the mailer.
Number of messages rejected.
Number of messages discarded.
Number of messages quarantined.
The name of the mailer.

After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections.

The options are as follows:

Read the specified file instead of the default sendmail configuration file.
Try to use submit.cf instead of the default sendmail configuration file.
Read the specified statistics file instead of the statistics file specified in the sendmail configuration file.
Output information in program-readable mode without clearing statistics.
Output information in program-readable mode and clear statistics.
Don't display the name of the mailer in the output.

The mailstats utility exits 0 on success, and >0 if an error occurs.

/etc/mail/sendmail.cf
The default sendmail configuration file.
/etc/mail/statistics
The default sendmail statistics file.

mailq(1), sendmail(8)

$Date: 2013-11-22 20:51:51 $