2000-05-03 13:27:16 +04:00
|
|
|
.\" Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
|
|
|
|
.\" All rights reserved.
|
2000-02-07 23:05:21 +03:00
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\"
|
2000-05-03 14:50:04 +04:00
|
|
|
.\" Id: mailstats.8,v 8.17 2000/03/11 20:18:21 gshapiro Exp
|
2000-02-07 23:05:21 +03:00
|
|
|
.\"
|
2000-05-03 13:27:16 +04:00
|
|
|
.TH MAILSTATS 1 "April 25, 1996"
|
|
|
|
.SH NAME
|
|
|
|
.B mailstats
|
|
|
|
\- display mail statistics
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mailstats
|
|
|
|
.RB [ \-o "] [" \-p ]
|
|
|
|
.RB [ \-C
|
|
|
|
.IR cffile ]
|
|
|
|
.RB [ \-f
|
|
|
|
.IR stfile ]
|
|
|
|
.SH DESCRIPTION
|
2000-02-07 23:05:21 +03:00
|
|
|
The
|
2000-05-03 13:27:16 +04:00
|
|
|
.B mailstats
|
2000-02-07 23:05:21 +03:00
|
|
|
utility displays the current mail statistics.
|
2000-05-03 13:27:16 +04:00
|
|
|
.PP
|
2000-02-07 23:05:21 +03:00
|
|
|
First, the time at which statistics started being kept is displayed,
|
2000-05-03 13:27:16 +04:00
|
|
|
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:
|
|
|
|
.sp
|
|
|
|
.RS
|
|
|
|
.PD 0.2v
|
|
|
|
.TP 1.2i
|
|
|
|
.B M
|
2000-02-07 23:05:21 +03:00
|
|
|
The mailer number.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B msgsfr
|
2000-02-07 23:05:21 +03:00
|
|
|
Number of messages from the mailer.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B bytes_from
|
2000-02-07 23:05:21 +03:00
|
|
|
Kbytes from the mailer.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B msgsto
|
2000-02-07 23:05:21 +03:00
|
|
|
Number of messages to the mailer.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B bytes_to
|
2000-02-07 23:05:21 +03:00
|
|
|
Kbytes to the mailer.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B msgsrej
|
2000-02-07 23:05:21 +03:00
|
|
|
Number of messages rejected.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B msgsdis
|
2000-02-07 23:05:21 +03:00
|
|
|
Number of messages discarded.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B Mailer
|
2000-02-07 23:05:21 +03:00
|
|
|
The name of the mailer.
|
2000-05-03 13:27:16 +04:00
|
|
|
.PD
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
After this display, a line totaling the values for all of the mailers
|
|
|
|
is displayed (preceeded with a ``T''),
|
|
|
|
separated from the previous information by a line containing only equals
|
|
|
|
(``='')
|
2000-02-07 23:05:21 +03:00
|
|
|
characters.
|
2000-05-03 13:27:16 +04:00
|
|
|
Another line preceeded with a ``C'' lists the number of connections.
|
|
|
|
.PP
|
2000-02-07 23:05:21 +03:00
|
|
|
The options are as follows:
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B \-C
|
2000-02-07 23:05:21 +03:00
|
|
|
Read the specified file instead of the default
|
2000-05-03 13:27:16 +04:00
|
|
|
.B sendmail
|
|
|
|
``cf'' file.
|
|
|
|
.TP
|
|
|
|
.B \-f
|
2000-02-07 23:05:21 +03:00
|
|
|
Read the specified statistics file instead of the statistics file
|
|
|
|
specified in the
|
2000-05-03 13:27:16 +04:00
|
|
|
.B sendmail
|
|
|
|
``cf'' file.
|
|
|
|
.TP
|
|
|
|
.B \-p
|
2000-02-07 23:05:21 +03:00
|
|
|
Output information in program-readable mode and clear statistics.
|
2000-05-03 13:27:16 +04:00
|
|
|
.TP
|
|
|
|
.B \-o
|
2000-02-07 23:05:21 +03:00
|
|
|
Don't display the name of the mailer in the output.
|
2000-05-03 13:27:16 +04:00
|
|
|
.PP
|
2000-02-07 23:05:21 +03:00
|
|
|
The
|
2000-05-03 13:27:16 +04:00
|
|
|
.B mailstats
|
2000-02-07 23:05:21 +03:00
|
|
|
utility exits 0 on success, and >0 if an error occurs.
|
2000-05-03 13:27:16 +04:00
|
|
|
.SH FILES
|
|
|
|
.PD 0.2v
|
|
|
|
.TP 2.5i
|
|
|
|
/etc/mail/sendmail.cf
|
2000-02-07 23:05:21 +03:00
|
|
|
The default
|
2000-05-03 13:27:16 +04:00
|
|
|
.B sendmail
|
|
|
|
``cf'' file.
|
|
|
|
.TP
|
|
|
|
/etc/mail/statistics
|
2000-02-07 23:05:21 +03:00
|
|
|
The default
|
2000-05-03 13:27:16 +04:00
|
|
|
.B sendmail
|
2000-02-07 23:05:21 +03:00
|
|
|
statistics file.
|
2000-05-03 13:27:16 +04:00
|
|
|
.PD
|
|
|
|
.SH SEE ALSO
|
|
|
|
mailq(1),
|
|
|
|
sendmail(8)
|