Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mailstats(1M) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sendmail(1C)



mailstats(1M)                   TCP/IP R4.11                   mailstats(1M)


NAME
       mailstats - print sendmail statistics

SYNOPSIS
       mailstats [-c] [-f file]

DESCRIPTION
       Mailstats is used to collect statistics compiled by sendmail.
       Statistics include, for each mailer defined in the sendmail.cf file,
       number of messages to that mailer, number of kilobytes to that
       mailer, number of messages from that mailer, number of kilobytes from
       that mailer.  The mailer is identified by its position in the
       sendmail.cf file - the first mailer defined is listed by mailstats as
       mailer 0, the second mailer defined as mailer 1, etc.  Statistics are
       printed for all mailers with non-zero msgsfr or msgsto values.

       Sample output:

       Statistics from Sun Apr 28 10:25:17 1991

       M msgsfr bytesfrom  msgsto   bytesto
       0      1          1K      0          0K
       2      0          0K      1          1K

       In the example above, the stats accumulated since April 28 are shown.
       One message to sendmail has been received from mailer 0, and sendmail
       has sent one message to mailer 2.

       Options are:

       -c        Clear/initialize the accumulated statistics, and reset the
                 date value.  This can only be done by a user with
                 appropriate privilege.  For systems supporting the DG/UX
                 Capability Option, appropriate privilege is defined as
                 having one or more specific capabilities enabled in the
                 effective capability set of the user.  See capdefaults(5)
                 for the default capabilities for this command.

       On systems without the DG/UX Capability Option, appropriate privilege
       means that your process has an effective UID of root. See the
       appropriateprivilege(5) man page for more information.

       -f     Use an alternate statistics file.

FILES
       /etc/mailstats.st   Contains statistics collected by sendmail and
                           stored (in binary form) for mailstats.

       /etc/sendmail.cf    Contains the mailer definitions.

SEE ALSO
       sendmail(1C), appropriatepriviledge(5).
       capdefaults(5).

WARNINGS
       If the sendmail.cf file is changed to include new mailer definitions
       (or change the relative locations of the old mailer definitions)
       mailstats -c should be run to reset the counters.

BUGS
       Granularity of byte counts transferred is very low.  Bytesfrom and
       bytesto are rounded up to the nearest one kilobyte value - which
       means a one byte message and a 1000 byte messages are both counted as
       a kilobyte.  Thus these statistics should be used as only a general
       indication of traffic through the various mailers.


Licensed material--property of copyright holder(s)

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