Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mailstats(1) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cron(1M)

sendmail(1M)

attributes(5)

largefile(5)

mailstats(1)

NAME

mailstats − print statistics collected by sendmail

SYNOPSIS

mailstats [ −c configfile ] [ −f statisticsfile ] file

DESCRIPTION

The mailstats utility prints out the statistics collected by the sendmail(1M) program on mailer usage.  These statistics are collected if the file indicated by the S configuration option of sendmail (defined in /etc/mail/sendmail.cf) exists. The default statistics file is /etc/mail/sendmail.st.  mailstats first prints the time that the statistics file was created and the last time it was modified.  It will then print a table with one row for each mailer specified in the configuration file.  The first column is the mailer number, followed by the total number of messages sent from this mailer.  The next two columns refer to the number of messages received by sendmail, and the last two columns refer to messages sent by sendmail.  The number of messages and their total size (in 1024 byte units) is given.  No numbers are printed if no messages were sent (or received) for any mailer. 

You might want to add an entry to /var/spool/cron/crontabs/root to reinitialize the statistics file once a night.  Copy /dev/null into the statistics file or otherwise truncate it to reset the counters. 

OPTIONS

The following options are supported:

−c configfile Specify a sendmail configuration file. 

−f statisticsfile Specify a sendmail statistics file. 

USAGE

See largefile(5) for the description of the behavior of mailstats when encountering files greater than or equal to 2 Gbyte ( 231 bytes). 

FILES

/dev/null zero-lined file

/var/spool/cron/crontabs/root
default scheduler file used by the cron(1M) daemon

/etc/mail/sendmail.st default sendmail statistics file

/etc/mail/sendmail.cf default sendmail configuration file

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Availability SUNWcsu

SEE ALSO

cron(1M), sendmail(1M), attributes(5), largefile(5)

DIAGNOSTICS

mailstats: file size changed
the statistics file is 0-length and has not yet been filled with data

NOTES

The mailstats utility should read the configuration file instead of having a hard-wired table mapping mailer numbers to names. 

SunOS 5.6  —  Last change: 28 Feb 1997

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026