summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/mailstats/mailstats.8
blob: bb81d5500eba8acfdcaea07843962a360be7a019 (plain)
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
.\" Copyright (c) 1998 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.
.\"
.\"
.\"	$Sendmail: mailstats.8,v 8.17.4.3 2000/12/29 18:12:20 gshapiro Exp $
.\"
.Dd December 29, 2000
.Dt MAILSTATS 1
.Os
.Sh NAME
.Nm mailstats
.Nd display mail statistics
.Sh SYNOPSIS
.Nm mailstats
.Op Fl o
.Op Fl p
.Op Fl C Ar cffile
.Op Fl f Ar stfile
.Sh DESCRIPTION
The
.Nm mailstats
utility displays the current mail statistics.
.Pp
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:
.Pp
.Bl -tag -width 10n -offset indent -compact
.It Sy M
The mailer number.
.It Sy msgsfr
Number of messages from the mailer.
.It Sy bytes_from
Kbytes from the mailer.
.It Sy msgsto
Number of messages to the mailer.
.It Sy bytes_to
Kbytes to the mailer.
.It Sy msgsrej
Number of messages rejected.
.It Sy msgsdis
Number of messages discarded.
.It Sy Mailer
The name of the mailer.
.El
.Pp
After this display, a line totaling the values for all of the mailers
is displayed (preceded with a
.Dq T ) ,
separated from the previous information by a line containing only equals
.Pq Dq \&=
characters.
Another line preceded with a
.Dq C
lists the number of connections.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl C
Read the specified file instead of the default
.Nm sendmail
configuration file.
.It Fl f
Read the specified statistics file instead of the statistics file
specified in the
.Nm sendmail
configuration file.
.It Fl p
Output information in program-readable mode and clear statistics.
.It Fl o
Don't display the name of the mailer in the output.
.El
.Pp
The
.Nm mailstats
utility exits 0 on success, and >0 if an error occurs.
.Sh FILES
.Bl -tag -width /var/log/sendmail.stXX -compact
.It Pa /etc/mail/sendmail.cf
The default
.Nm sendmail
.Dq cf
file.
.It Pa /var/log/sendmail.st
The default
.Nm sendmail
statistics file.
.El
.Sh SEE ALSO
.Xr mailq 1 ,
.Xr sendmail 8