1 | .\" Dummy comment to avoid confusing man |
---|
2 | .so /usr/athena/share/tmac/tmac.doc |
---|
3 | .\" Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. |
---|
4 | .\" All rights reserved. |
---|
5 | .\" |
---|
6 | .\" By using this file, you agree to the terms and conditions set |
---|
7 | .\" forth in the LICENSE file which can be found at the top level of |
---|
8 | .\" the sendmail distribution. |
---|
9 | .\" |
---|
10 | .\" |
---|
11 | .\" $Id: mailstats.8,v 1.3 2003-04-08 15:42:14 zacheiss Exp $ |
---|
12 | .\" |
---|
13 | .TH MAILSTATS 8 "$Date: 2003-04-08 15:42:14 $" |
---|
14 | .SH NAME |
---|
15 | mailstats |
---|
16 | \- display mail statistics |
---|
17 | .SH SYNOPSIS |
---|
18 | .B mailstats |
---|
19 | .RB [ \-c "] [" \-o "] [" \-p "] [" \-P ] |
---|
20 | .RB [ \-C |
---|
21 | .IR cffile ] |
---|
22 | .RB [ \-f |
---|
23 | .IR stfile ] |
---|
24 | .SH DESCRIPTION |
---|
25 | The |
---|
26 | .B 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 | ctime(3). |
---|
32 | Then, |
---|
33 | the statistics for each mailer are displayed on a single line, |
---|
34 | each with the following white space separated fields: |
---|
35 | .sp |
---|
36 | .RS |
---|
37 | .PD 0.2v |
---|
38 | .TP 1.2i |
---|
39 | .B M |
---|
40 | The mailer number. |
---|
41 | .TP |
---|
42 | .B msgsfr |
---|
43 | Number of messages from the mailer. |
---|
44 | .TP |
---|
45 | .B bytes_from |
---|
46 | Kbytes from the mailer. |
---|
47 | .TP |
---|
48 | .B msgsto |
---|
49 | Number of messages to the mailer. |
---|
50 | .TP |
---|
51 | .B bytes_to |
---|
52 | Kbytes to the mailer. |
---|
53 | .TP |
---|
54 | .B msgsrej |
---|
55 | Number of messages rejected. |
---|
56 | .TP |
---|
57 | .B msgsdis |
---|
58 | Number of messages discarded. |
---|
59 | .TP |
---|
60 | .B Mailer |
---|
61 | The name of the mailer. |
---|
62 | .PD |
---|
63 | .RE |
---|
64 | .PP |
---|
65 | After this display, a line totaling the values for all of the mailers |
---|
66 | is displayed (preceded with a ``T''), |
---|
67 | separated from the previous information by a line containing only equals |
---|
68 | (``='') |
---|
69 | characters. |
---|
70 | Another line preceded with a ``C'' lists the number of TCP connections. |
---|
71 | .PP |
---|
72 | The options are as follows: |
---|
73 | .TP |
---|
74 | .B \-C |
---|
75 | Read the specified file instead of the default |
---|
76 | .B sendmail |
---|
77 | configuration file. |
---|
78 | .TP |
---|
79 | .B \-c |
---|
80 | Try to use submit.cf instead of the default |
---|
81 | .B sendmail |
---|
82 | configuration file. |
---|
83 | .TP |
---|
84 | .B \-f |
---|
85 | Read the specified statistics file instead of the statistics file |
---|
86 | specified in the |
---|
87 | .B sendmail |
---|
88 | configuration file. |
---|
89 | .TP |
---|
90 | .B \-P |
---|
91 | Output information in program-readable mode without clearing statistics. |
---|
92 | .TP |
---|
93 | .B \-p |
---|
94 | Output information in program-readable mode and clear statistics. |
---|
95 | .TP |
---|
96 | .B \-o |
---|
97 | Don't display the name of the mailer in the output. |
---|
98 | .PP |
---|
99 | The |
---|
100 | .B mailstats |
---|
101 | utility exits 0 on success, and >0 if an error occurs. |
---|
102 | .SH FILES |
---|
103 | .PD 0.2v |
---|
104 | .TP 2.5i |
---|
105 | /etc/mail/sendmail.cf |
---|
106 | The default |
---|
107 | .B sendmail |
---|
108 | configuration file. |
---|
109 | .TP |
---|
110 | /etc/mail/statistics |
---|
111 | The default |
---|
112 | .B sendmail |
---|
113 | statistics file. |
---|
114 | .PD |
---|
115 | .SH SEE ALSO |
---|
116 | mailq(1), |
---|
117 | sendmail(8) |
---|