aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/mailstats/mailstats.8
blob: c69dc2ec4164a9eb266e03bdb80204ae3a6d0e96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.\" Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers.
.\"	 All rights reserved.
.\"
.\" 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.
.\"
.\"
.\"	$Id: mailstats.8,v 1.1.1.7 2002/04/10 03:04:54 gshapiro Exp $
.\"
.TH MAILSTATS 8 "$Date: 2002/04/10 03:04:54 $"
.SH NAME
mailstats
\- display mail statistics
.SH SYNOPSIS
.B mailstats
.RB [ \-o "] [" \-p "] [" \-P ]
.RB [ \-C 
.IR cffile ]
.RB [ \-f
.IR stfile ]
.SH DESCRIPTION
The
.B mailstats
utility displays the current mail statistics.
.PP
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:
.sp
.RS
.PD 0.2v
.TP 1.2i
.B M
The mailer number.
.TP 
.B msgsfr
Number of messages from the mailer.
.TP
.B bytes_from
Kbytes from the mailer.
.TP
.B msgsto
Number of messages to the mailer.
.TP
.B bytes_to
Kbytes to the mailer.
.TP
.B msgsrej
Number of messages rejected (by check_* rulesets).
.TP
.B msgsdis
Number of messages discarded (by check_* rulesets).
.TP
.B Mailer
The name of the mailer.
.PD
.RE
.PP
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.
.PP
The options are as follows:
.TP 
.B \-C
Read the specified file instead of the default
.B sendmail
configuration file.
.TP
.B \-f
Read the specified statistics file instead of the statistics file
specified in the
.B sendmail 
configuration file.
.TP 
.B \-P
Output information in program-readable mode without clearing statistics.
.TP
.B \-p
Output information in program-readable mode and clear statistics.
.TP
.B \-o
Don't display the name of the mailer in the output.
.PP
The
.B mailstats
utility exits 0 on success, and >0 if an error occurs.
.SH FILES
.PD 0.2v
.TP 2.5i
/etc/mail/sendmail.cf
The default
.B sendmail
configuration file.
.TP
/etc/mail/statistics
The default
.B sendmail
statistics file.
.PD
.SH SEE ALSO
mailq(1), 
sendmail(8)