The mailstats Program’s Switches

The mailstats program has a modest number of command-line switches. They are summarized in Table 10-5 and described more fully in the sections that follow.

Table 10-5. The mailstats program’s switches

Switch

§

Description

-c

-c on page 367

Use submit.cf instead.

-C

-C on page 368

Specify the configuration file’s location.

-f

-f on page 368

Specify another name for the statistics file.

-o

-o on page 368

Omit the delivery agent names.

-p

-p on page 369

Produce program-friendly output and clear the statistics file.

-P

-P on page 370

Produce program-friendly output and don’t clear the statistics file.

-c

Use submit.cf instead mailstats command-line switch

When you run the MSP form of sendmail (The submit.cf File on page 66) you use two different configuration files, the sendmail.cf file and the submit.cf file. But it is possible to configure sendmail so that it uses a different statistics file with each configuration file. In that case, you can use this -c command-line switch to specify use of the submit.cf file, and its corresponding statistics file:

% mailstats -cuse submit.cf to locate the statistics file

If you are not set up to use MSP, use of this switch might yield the following error:

mailstats: /etc/mail/submit.cf: No such file or directory

-C

Specify the configuration file’s location mailstats command-line switch

The mailstats program reads the sendmail program’s configuration file to locate the statistics file. It scans the configuration ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.