Configuration Commands
The sendmail.cf configuration file is line-oriented. A configuration command, composed of a single letter, begins each line:
V10/Berkeley ← good V10/Berkeley ← bad, does not begin a line V10/Berkeley Fw/etc/mail/mxhosts ← bad, two commands on one line Fw/etc/mail/mxhosts ← good
Each configuration command is followed by parameters that are
specific to it. For example, the V
command is followed by an ASCII
representation of an integer value, a slash, and a vendor
name. Whereas the F
command is followed by a letter (a w
in the example), then the full pathname
of a file. The complete list of configuration
commands[21] is shown in Table 1-4.
Table 1-4. The sendmail.cf file’s configuration commands
Command |
Description |
---|---|
|
Define a class macro. |
|
Define a macro. |
|
Define an environment variable (beginning with V8.7). |
|
Define a class macro from a file, pipe, or database map. |
|
Define a header. |
|
Declare a keyed database (beginning with V8.1). |
|
Include extended load average support (contributed software, not covered). |
|
Define a mail delivery agent. |
|
Define an option. |
|
Define delivery priorities. |
|
Define a queue (beginning with V8.12). |
|
Define a rewriting rule. |
|
Declare a rule-set start. |
|
Declare trusted users (ignored in V8.1, restored in V8.7). |
|
Define configuration file version (beginning with V8.1). |
|
Define a mail filter (beginning with V8.12). |
Some commands, such as V
,
should appear only once in your
sendmail.cf file. Others, ...
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.