2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MAILSTATS 1 "Jun 24, 2004"
8 mailstats \- print statistics collected by sendmail
12 \fBmailstats\fR [\fB-o\fR] [\fB-c\fR ] [\fB-C\fR \fIconfigfile\fR] [\fB-f\fR \fIstatisticsfile\fR]
19 The \fBmailstats\fR utility prints out the statistics collected by the
20 \fBsendmail\fR(1M) program on mailer usage. These statistics are collected if
21 the file indicated by the \fBStatusFile\fR configuration option of
22 \fBsendmail\fR (defined in \fB/etc/mail/sendmail.cf\fR) exists. The default
23 statistics file is \fB/etc/mail/statistics\fR.
26 To enable \fBmailstats\fR, you must, as root, touch \fB/etc/mail/statistics\fR.
27 See the \fBStatusFile\fR processing option in \fBsendmail\fR(1M).
30 \fBmailstats\fR first prints the time that the statistics file was created and
31 the last time it was modified. Then, the statistics for each mailer are
32 displayed on a single line, each with the following whitespace-separated
49 Number of messages from the mailer.
58 Kbytes from the mailer.
67 Number of messages to the mailer.
85 Number of messages rejected by the mailer.
94 Number of messages discarded by the mailer.
103 Number of messages quarantined by the mailer.
112 The name of the mailer.
117 The display of statistics described above is followed by a separation line
118 containing only equal sign (\fB=\fR) characters. After the separation line, a
119 line preceded with a "\fBT\fR" and totaling the values for all of the mailers
120 is displayed. This is followed by another line preceded with a "\fBC\fR" that
121 lists the number of TCP connections.
124 To reinitialize the statistics file once a night, add an entry to root's
129 mailstats -p > /dev/null
137 The following options are supported:
144 Try to use \fBsubmit.cf\fR instead of the default \fBsendmail\fR configuration
151 \fB\fB-C\fR \fIconfigfile\fR\fR
154 Specify a \fBsendmail\fR configuration file.
160 \fB\fB-f\fR \fIstatisticsfile\fR\fR
163 Specify a \fBsendmail\fR statistics file.
172 Do not display the name of the mailer in the output.
181 Output information in program-readable mode and clear statistics.
190 Output information in program-readable mode without clearing statistics.
196 See \fBlargefile\fR(5) for the description of the behavior of \fBmailstats\fR
197 when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
202 \fB\fB/dev/null\fR\fR
211 \fB\fB/etc/mail/statistics\fR\fR
214 Default \fBsendmail\fR statistics file
220 \fB\fB/etc/mail/sendmail.cf\fR\fR
223 Default \fBsendmail\fR configuration file
229 See \fBattributes\fR(5) for descriptions of the following attributes:
237 ATTRIBUTE TYPE ATTRIBUTE VALUE
239 Output Stability Unstable
245 \fBcrontab\fR(1), \fBcron\fR(1M), \fBsendmail\fR(1M), \fBattributes\fR(5),