[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

mailstats Command

Purpose

Displays statistics about mail traffic.

Syntax

/usr/sbin/mailstats [ -S File ] [ -z ]

Description

This command reads the information in the /etc/sendmail.st file (or in the file specified with the -S flag), formats it, and writes it to a standard output device. The resulting report is formatted as follows:

Sendmail statistics from file "/etc/sendmail.st"
        Collection started at Thu Feb 18 17:40:41 1989
 
Mailer       msgs_from     bytes_from      msgs_to     bytes_to
------       ---------     ----------      -------     --------
local            145          31396          444        480177
prog               0              0           21          8227
uucp               0              0            0             0
tcp              381         407452           97         67673

The fields in the report have the following meaning:

msgs_from Contains the number of messages received by the local machine from the indicated mailer.
bytes_from Contains the number of bytes in the messages received by the local machine from the indicated mailer.
msgs_to Contains the number of messages sent from the local machine using the indicated mailer.
bytes_to Contains the number of bytes in the messages sent from the local machine using the indicated mailer.

If the sendmail command transmits mail directly to a file, such as the $HOME/dead.letter file or an alias target, the message and byte counts are credited to the prog mailer.

Flags

-S File Specifies use of the File parameter as the input statistics file instead of the /etc/sendmail.st file, which is the default.
-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/sendmail.st Contains mail program statistics.
sendmail.cf file Contains configuration information for the sendmail command.

Related Information

The sendmail command.

Managing the Mail Queue Files and Directories in AIX Version 4.3 System Management Guide: Communications and Networks.

How To Display Mailer Information, How to Log the Mailer Statistics in AIX Version 4.3 System Management Guide: Communications and Networks.


[ Previous | Next | Contents | Glossary | Home | Search ]