Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mailstats(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sendmail

mailstats

PURPOSE

     Displays statistics regarding mail traffic.

SYNOPSIS
     /usr/lib/mailstats [-S file -z]


DESCRIPTION

     This     command     reads     the     information     in
     /usr/adm/sendmail/sendmail.st (or  in the  file specified
     with the -S flag), formats  it, and writes it to standard
     output.  The  format of the  information is shown  in the
     following example:

           Sendmail statistics from file "/usr/adm/sendmail/sendmail.st"
                      Collection started at Thu Feb 18 17:40:41 1988

           Mailer          msgs_from     bytes_from      msgs_to       bytes_to
           ------------    ---------     ----------    ---------     ----------
           local                   1              2            1            201
           prog                    0              0            0              0
           uucp                    0              0            0              0
           tcp                     0              0            0              0

     The fields in the report have the following meanings:

     Mailer    This  field contains  the  name  of the  mailer
               program that handled the mail.
     msgs_from This field (messages  from) contains the number
               of messages that  originated from the indicated
               mailer.
     bytes_from
               This  field contains  the  number  of bytes  of
               information in the messages sent from the indi-
               cated mailer.
     msgs_to   This field (messages to) contains the number of
               messages that  ended locally and  were received
               by the indicated mailer.
     bytes_to  This  field contains  the  number  of bytes  of
               information  in the  messages  received by  the
               indicated mailer.

     The collection start time indicated on the second line of
     the report is  the time at which the first  update to the
     empty file was performed.

     If sendmail  transmits mail directly  to a file,  such as
     dead.letter  or an  alias  target, the  message and  byte
     counts are credited  to the "prog" mailer  in addition to
     the normal statistics for use of the "prog" mailer.

STATISTICS MESSAGES

     When mailstats  is called with  no program flags,  it can
     generate the following messages:

     No         statistics         data        in         file
     _________________________________________________________
               "/usr/adm/sendmail/sendmail.st"
               _______________________________
               The sendmail  program has not written  any data
               into the statistics file.
     mailstats:  file  size  change;  use  previous  mailstats
     _________________________________________________________
               version
               _______
               The statistics  file format  is not  the format
               expected  by mailstats.   Try using  a previous
               version of mailstats to read it.

FLAGS

     -S file     Specifies to use file as the input statistics
                 file instead of /usr/adm/sendmail/sendmail.st
     -z          Clears the  contents of the  statistics file.
                 Clearing  the file  erases  the contents  and
                 allows  you  to  start  gathering  statistics
                 again.

FILES

     /usr/lib/mailstats             The mailstats program.
     /usr/adm/sendmail/sendmail.st  The  data  base file  con-
                                    taining  mail system  sta-
                                    tistics.
     /usr/adm/sendmail/sendmail.cf  The configuration file for
                                    sendmail program.

RELATED INFORMATION

     The command:  "sendmail."

     The chapter about  managing the mail system in  IBM RT PC
     Managing the AIX Operating System.

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