It contains
information that is necessary for sendmail to run. It lists the locations of important
files and specifies the default permissions for those files. It contains options that
modify sendmail??™s behavior. Most important, it contains rules and rule sets for
rewriting addresses.
1.8.1 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
Eachconfiguration 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
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
30 | Chapter 1: Some Basics
the example), then the full pathname of a file. The complete list of configuration
commands* is shown in Table 1-4.
Some commands, suchas V, should appear only once in your sendmail.cf file. Others,
such as R, can appear often.
Blank lines and lines that begin with the # character are considered comments and
are ignored. A line that begins with either a tab or a space character is a continuation
of the preceding line:
# a comment
V10
/Berkeley ?†? continuation of V line above
?†‘
tab
Note that anything other than a command, a blank line, a space, a tab, or a # character
causes an error.
Pages:
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85