A configuration file is generated from an
(e.g., one named
source tree like this:
To use a directory other than ..
is the full path to the
may contain the following lines (in this order):
declare local parameters using
can be several
can be several
local rule set declarations here
Thus, a minimal file
would declare the operating system and local delivery agent support
with two lines like this:
In some cases you may see lines terminated with
, which means "delete to new line."
Its use prevents extra blank lines from appearing in the output.
It is almost never required.
For more details about the
technique in general,
Causes support to be included from one of the files in
This sets defaults for your operating system from the file
(as for example,
If you want to change any of the defaults that come with
your operating system's file, do so after declaring OSTYPE.
Collects together local paramater declarations for an (optional)
is the name of a file in the
With the exception of the file called
you should create your own
local parameter declarations
Are (mostly) named conf
and most all cases are declared using the
define options and macros (see
The sendmail.cf File
In some cases local parameters are declared using special macros;
see the next section.
Supplies simple solutions to special needs. The FEATURE
directive is described below.
Causes support for delivery agents to be included. It must
follow local parameter declarations because some of them
change how a MAILER directive will be interpreted.
MAILER is detailed following the features.
local rule set declarations
Allow you to easily add rules and rule sets to your configuration
Each definition stands on a line by itself, and the
lines following each are included in the appropriate place
in the configuration file. For example:
LOCAL_CONFIG to add general declarations (e.g.,
that should go at the top of the configuration file
LOCAL_RULE_0 to add rules to rule set 0
LOCAL_RULE_1 to add rules to rule set 1
LOCAL_RULE_2 to add rules to rule set 2
LOCAL_RULE_3 to add rules to rule set 3
and LOCAL_RULESETS to declare entirely
new rule sets, such as
Also select from:
LOCAL_NET_CONFIG (used in conjunction with LOCAL_RELAY)
to add rules that tell what addresses
be forwarded to the relay
and MAILER_DEFINITIONS to define new delivery agents and
the rule sets associated with them
These lines should go in the DOMAIN file or
before FEATURE declarations (because
they precondition certain features).
(Used with MASQUERADE_AS)
tells what users should not be masqueraded
Lists the names of domains that will be looked up with
feature. Declare one
per line. There may be several such lines.
that contains the domains
that will be looked up with the
Causes all outgoing addresses to be rewritten as though
they came from the indicated
s that will be translated
into the MASQUERADE_AS domain.
See also the
Specifies the name of the
that contains a list of domains that will be masqueraded