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