1 | .\" Dummy comment to avoid confusing man |
---|
2 | .so /usr/athena/share/tmac/tmac.doc |
---|
3 | .\" Copyright (c) 1998 Sendmail, Inc. All rights reserved. |
---|
4 | .\" |
---|
5 | .\" By using this file, you agree to the terms and conditions set |
---|
6 | .\" forth in the LICENSE file which can be found at the top level of |
---|
7 | .\" the sendmail distribution. |
---|
8 | .\" |
---|
9 | .\" |
---|
10 | .\" @(#)mailstats.8 8.8 (Berkeley) 11/13/1998 |
---|
11 | .\" |
---|
12 | .Dd April 25, 1996 |
---|
13 | .Dt MAILSTATS 1 |
---|
14 | .Os BSD 3 |
---|
15 | .Sh NAME |
---|
16 | .Nm mailstats |
---|
17 | .Nd display mail statistics |
---|
18 | .Sh SYNOPSIS |
---|
19 | .Nm mailstats |
---|
20 | .Op Fl o |
---|
21 | .if \nP .Op Fl p |
---|
22 | .Op Fl C Ar cffile |
---|
23 | .Op Fl f Ar stfile |
---|
24 | .Sh DESCRIPTION |
---|
25 | The |
---|
26 | .Nm mailstats |
---|
27 | utility displays the current mail statistics. |
---|
28 | .Pp |
---|
29 | First, the time at which statistics started being kept is displayed, |
---|
30 | in the format specified by |
---|
31 | .Xr ctime 3 . |
---|
32 | Then, |
---|
33 | the statistics for each mailer are displayed on a single line, |
---|
34 | each with the following whitespace separated fields: |
---|
35 | .Pp |
---|
36 | .Bl -tag -width 10n -offset indent -compact |
---|
37 | .It Sy M |
---|
38 | The mailer number. |
---|
39 | .It Sy msgsfr |
---|
40 | Number of messages from the mailer. |
---|
41 | .It Sy bytes_from |
---|
42 | Kbytes from the mailer. |
---|
43 | .It Sy msgsto |
---|
44 | Number of messages to the mailer. |
---|
45 | .It Sy bytes_to |
---|
46 | Kbytes to the mailer. |
---|
47 | .It Sy msgsrej |
---|
48 | Number of messages rejected. |
---|
49 | .It Sy msgsdis |
---|
50 | Number of messages discarded. |
---|
51 | .It Sy Mailer |
---|
52 | The name of the mailer. |
---|
53 | .El |
---|
54 | .Pp |
---|
55 | After this display, a line totaling the values for all of the mailers |
---|
56 | is displayed, |
---|
57 | separated from the previous information by a line containing only equals |
---|
58 | .Pq Dq \&= |
---|
59 | characters. |
---|
60 | .Pp |
---|
61 | The options are as follows: |
---|
62 | .Bl -tag -width Ds |
---|
63 | .It Fl C |
---|
64 | Read the specified file instead of the default |
---|
65 | .Nm sendmail |
---|
66 | .Dq cf |
---|
67 | file. |
---|
68 | .It Fl f |
---|
69 | Read the specified statistics file instead of the statistics file |
---|
70 | specified in the |
---|
71 | .Nm sendmail |
---|
72 | .Dq cf |
---|
73 | file. |
---|
74 | .if \nP \ |
---|
75 | \{ |
---|
76 | .It Fl p |
---|
77 | Output information in program-readable mode and clear statistics. |
---|
78 | .\} |
---|
79 | .It Fl o |
---|
80 | Don't display the name of the mailer in the output. |
---|
81 | .El |
---|
82 | .Pp |
---|
83 | The |
---|
84 | .Nm mailstats |
---|
85 | utility exits 0 on success, and >0 if an error occurs. |
---|
86 | .Sh FILES |
---|
87 | .Bl -tag -width /var/log/sendmail.stXX -compact |
---|
88 | .ie \nP .It Pa /etc/mail/sendmail.cf |
---|
89 | .el .It Pa /etc/sendmail.cf |
---|
90 | The default |
---|
91 | .Nm sendmail |
---|
92 | .Dq cf |
---|
93 | file. |
---|
94 | .ie \nP .It Pa /etc/mail/statistics |
---|
95 | .el .It Pa /var/log/sendmail.st |
---|
96 | The default |
---|
97 | .Nm sendmail |
---|
98 | statistics file. |
---|
99 | .El |
---|
100 | .Sh SEE ALSO |
---|
101 | .Xr mailq 1 , |
---|
102 | .Xr sendmail 8 |
---|