StatusFile

Specify statistics file All versions

At busy and complex mail sites, many different delivery agents are active. For example, one kind of mail might be routed over the Internet using the TCP delivery agent, while another might be routed via the UUCP suite of programs, and yet another might be routed over a DS3 link to a group of research machines. Under such circumstances, it is useful to gather statistical information about the total use to date of each delivery agent.

The StatusFile option tells sendmail the name of the file into which it should save those statistics. This option does not cause statistics to be gathered. It merely specifies the name of the file where they might be saved. When sendmail runs, it checks for the existence of such a file. If the file exists, it opens and updates the statistics in the file. If the file doesn’t exist, sendmail quietly ignores statistics. The statistics can be viewed by using the mailstats(8)[421] program (The statistics File on page 365).

The forms of the StatusFile option are as follows:

O StatusFile=pathconfiguration file (V8.7 and later)
-OStatusFile=pathcommand line (V8.7 and later)
define(`STATUS_FILE',`path')   ← mc configuration (V8.7 and later)
OSpathconfiguration file (deprecated)
-oSpathcommand line (deprecated)
undefine(`STATUS_FILE')        ← mc configuration (V8.14 and later)

The optional argument path is of type string. It can be a relative or a full pathname. The default value for path is statistics. Relative names ...

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.