By using this file, you agree to the terms and conditions set
forth in the LICENSE file which can be found at the top level of
the sendmail distribution.
@(#)mailstats.8 8.8 (Berkeley) 11/13/1998
.Dd April 25, 1996 .Dt MAILSTATS 1 .Os BSD 3 .Sh NAME .Nm mailstats .Nd display mail statistics .Sh SYNOPSIS .Nm mailstats .Op Fl o .Op Fl C Ar cffile .Op Fl f Ar stfile .Sh DESCRIPTION The .Nm mailstats utility displays the current mail statistics.
p First, the time at which statistics started being kept is displayed, in the format specified by .Xr ctime 3 . Then, the statistics for each mailer are displayed on a single line, each with the following whitespace separated fields:
p l -tag -width 10n -offset indent -compact t Sy M The mailer number. t Sy msgsfr Number of messages from the mailer. t Sy bytes_from Kbytes from the mailer. t Sy msgsto Number of messages to the mailer. t Sy bytes_to Kbytes to the mailer. t Sy msgsrej Number of messages rejected. t Sy msgsdis Number of messages discarded. t Sy Mailer The name of the mailer. .El
p After this display, a line totaling the values for all of the mailers is displayed, separated from the previous information by a line containing only equals
q Dq = characters.
p The options are as follows: l -tag -width Ds t Fl C Read the specified file instead of the default .Nm sendmail .Dq cf file. t Fl f Read the specified statistics file instead of the statistics file specified in the .Nm sendmail .Dq cf file. \{ t Fl p Output information in program-readable mode and clear statistics. .\} t Fl o Don't display the name of the mailer in the output. .El
p The .Nm mailstats utility exits 0 on success, and >0 if an error occurs. .Sh FILES l -tag -width /var/log/sendmail.stXX -compact The default .Nm sendmail .Dq cf file. The default .Nm sendmail statistics file. .El .Sh SEE ALSO .Xr mailq 1 , .Xr sendmail 8