Purpose
Displays statistics
about mail traffic.
Syntax
mailstats [ -C cfFile ] [ -c ] [ -P ] [ -f StatFile ] [ -o ] [ -p ]
Description
The mailstats command
displays the current mail statistics. The time at which the statistics
started displays reads the information in the format specified by ctime.
The statistics for each mailer are displayed on a single line, with
the following fields:
Item |
Description |
M |
Contains the mailer number. |
msgsfr |
Contains the number of messages received by the local machine
from the indicated mailer. |
bytes_from |
Contains the number of Kbytes in the messages received by the
local machine from the indicated mailer. |
msgsto |
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. |
msgsrej |
Contains the number of messages rejected. |
msgsdis |
Contains the number of messages discarded. |
Mailer |
Contains the name of mailer. |
After the statistics are displayed,
a line totaling the value of all of the mailers displays, preceeded
with a T. This information is separated from the statistics
by a line containing only = (equal characters). Another line
preceeded with a C lists the number of connections.
Flags
Item |
Description |
-C cfFile |
Specifies use of the cfFile instead of the default sendmailcf file. |
-c |
Specifies use of the submit.cf file instead
of the sendmail.cf file. |
-f StatFile |
Specifies use of the StatFile instead of the statistics
file specified in the sendmail.cf file. |
-o |
Specifies that the name of the mailer does not display in the
output. |
-p |
Outputs information in program readable mode
and clears the statistics. |
-P |
Outputs information in program readable mode
without clearing the statistics. |
Exit Status
Item |
Description |
0 |
Successful completion. |
>0 |
An error occurred. |
Security
Attention RBAC users and Trusted AIX users: This
command can perform privileged operations. Only privileged users can
run privileged operations. For more information about authorizations
and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list
of privileges and the authorizations associated with this command,
see the lssecattr command or the getcmdattr subcommand.
Files
Item |
Description |
/etc/mail/statistics |
Default sendmail statistics file. |
/etc/mail/sendmail.cf |
Default sendmail configuration file. |