Special features can be requested using the "FEATURE" macro. For example, the .mc line:
FEATURE(use_cw_file)
tells sendmail that you want to have it read an /etc/sendmail.cw file to get values for class $=w. The FEATURE may contain a single optional parameter -- for example:
FEATURE(mailertable, dbm /usr/lib/mailertable)
The default database map type for the table features can be set with
define(`DATABASE_MAP_TYPE', `dbm')
which would set it to use ndbm databases. The default is the Berkeley
DB hash database format. Note that you must still declare a database map
type if you specify an argument to a FEATURE
.
DATABASE_MAP_TYPE
is only used if no argument is given for
the FEATURE
.
Available features are:
use_cw_file |
Read the file |
use_ct_file |
Read the file |
redirect |
Reject all mail addressed to "address.REDIRECT" with a ``551 User not local; please try <address>'' message. If this is set, you can alias people who have left to their new address with ".REDIRECT" appended. |
nouucp |
Don't do anything special with UUCP addresses at all. |
nocanonify |
Don't pass addresses to |
stickyhost |
If set, email sent to "user@local.host" are marked as "sticky" -- that is, the local addresses aren't matched against UDB and don't go through ruleset 5. This is used if you want a set up where "user" is not necessarily the same as "user@local.host", e.g., to make a distinct domain-wide namespace. Prior to 8.7 this was the default, and notsticky was used to turn this off. |
mailertable |
Include a "mailer table" which can be used to override routing for particular domains. The argument of the FEATURE may be the key definition. If none is specified, the definition used is: hash -o /etc/mailertable
Keys in this database are fully qualified domain names or partial domains preceded by a dot -- for example, "vangogh.CS.Berkeley.EDU" or ".CS.Berkeley.EDU". Values must be of the form: mailer:domain
where "mailer" is the internal mailer name, and "domain" is where to send the message. These maps are not reflected into the message header. As a special case, the forms: local:user
will forward to the indicated user using the local mailer, local:
will forward to the original user in the e-mail address using the local mailer, and error:code message
will give an error message with the indicated code and message. |
domaintable |
Include a "domain table" which can be used to provide domain name mapping. Use of this should really be limited to your own domains. It may be useful if you change names (e.g., your company changes names from oldname.com to newname.com). The argument of the FEATURE may be the key definition. If none is specified, the definition used is: hash -o /etc/domaintable
The key in this table is the domain name; the value is the new (fully qualified) domain. Anything in the domaintable is reflected into headers; that is, this is done in ruleset 3. |
bitdomain |
Look up bitnet hosts in a table to try to turn them into internet addresses. The table can be built using the bitdomain program contributed by John Gardiner Myers. The argument of the FEATURE may be the key definition; if none is specified, the definition used is: hash -o /etc/bitdomain.db
Keys are the bitnet hostname; values are the corresponding internet hostname. |
uucpdomain |
Similar feature for UUCP hosts. The default map definition is: hash -o /etc/uudomain.db
At the moment there is no automagic tool to build this database. |
always_add_domain |
Include the local host domain even on locally delivered mail. Normally it is not added on unqualified names. However, if you use a shared message store but do not use the same user name space everywhere, you may need the host name on local names. |
allmasquerade |
If masquerading is enabled (using
|
limited_masquerade |
Normally, any hosts listed in |
masquerade_entire_domain |
If masquerading is enabled (using
MASQUERADE_AS(masq.com)
then *foo.org and *bar.com are converted to masq.com. Without this feature, only foo.org and bar.com are masqueraded. NOTE: only domains within your jurisdiction and current hierarchy should be masqueraded using this. |
masquerade_envelope |
Using this features instructs sendmail to masquerade the envelope sender and recipient as well as those in the headers. |
genericstable |
This feature will cause certain addresses originating locally (i.e.
that are unqualified) or a domain listed in The argument of hash -o /etc/genericstable
The key for this table is either the full address or the unqualified
username (the former is tried first); the value is the new user address. If
the new user address does not include a domain, it will be qualified in the
standard manner, i.e. using |
virtusertable |
A domain-specific form of aliasing, allowing multiple virtual domains to be hosted on one machine. For example, if the virtuser table contained:
info@foo.com foo-info
then mail addressed to info@foo.com will be sent to the address foo-info,
mail addressed to info@bar.com will be delivered to bar-info, and mail
addressed to anyone at baz.org will be sent to jane@elsewhere.net. The
username from the original address is passed as
@foo.org %1@elsewhere.com
meaning someone@foo.org will be sent to someone@elsewhere.com. All the host names on the left hand side (foo.com, bar.com, and baz.org)
must be in hash -o /etc/virtusertable
A new definition can be specified as the second argument of the FEATURE macro, such as
FEATURE(virtusertable, dbm -o /etc/mail/virtusers)
|
nodns |
We aren't running DNS at our site (for example, we are UUCP-only connected). It's hard to consider this a "feature", but hey, it had to go somewhere. Actually, as of 8.7 this is a no-op -- remove "dns" from the hosts service switch entry instead. |
nullclient |
This is a special case -- it creates a stripped down configuration file containing nothing but support for forwarding all mail to a central hub via a local SMTP-based network. The argument is the name of that hub. The only other feature that should be used in conjunction with this one is
" |
local_lmtp |
Use an LMTP capable local mailer. The argument to this feature is the
pathname of an LMTP capable mailer. By default, mail.local is used. This is
expected to be the mail.local which came with the 8.9 distribution which is
LMTP capable. The path to mail.local is set by the
confEBINDIR m4 variable -- making the
default |
local_procmail |
Use procmail as the local mailer. This mailer can make use
of the "user+indicator@local.host" syntax; normally the +indicator is just
tossed, but by default it is passed as the |
bestmx_is_local |
Accept mail as though locally addressed for any host that lists us as the best possible MX record. This generates additional DNS traffic, but should be OK for low to medium traffic hosts. The argument may be a set of domains, which will limit the feature to only apply to these domains -- this will reduce unnecessary DNS traffic. THIS FEATURE IS FUNDAMENTALLY INCOMPATIBLE WITH WILDCARD MX RECORDS!!! If you have a wildcard MX record that matches your domain, you cannot use this feature. |
smrsh |
Use the SendMail Restricted SHell (smrsh) provided with the
distribution instead of |
promiscuous_relay |
By default, the sendmail configuration files do not permit mail relaying (that is, accepting mail from outside your domain and sending it to another host outside your domain). This option sets your site to allow mail relaying from any site to any site. In general, it is better to control the relaying more carefully with the access db and the 'R' class ($=R). Domains can be added to class 'R' by the macros RELAY_DOMAIN or RELAY_DOMAIN_FILE (analogously to MASQUERADE_DOMAIN and MASQUERADE_DOMAIN_FILE, see below). |
relay_entire_domain |
By default, only hosts listed as RELAY in the access db will be allowed to relay. This option also allows any host in your domain as defined by the 'm' class ($=m). |
relay_hosts_only |
By default, names that are listed as RELAY in the access db and class 'R' ($=R) are domain names, not host names. For example, if you specify ``foo.com'', then mail to or from foo.com, abc.foo.com, or a.very.deep.domain.foo.com will all be accepted for relaying. This feature changes the behaviour to lookup individual host names only. |
relay_based_on_MX |
Turns on the ability to allow relaying based on the MX records of the host portion of an incoming recipient. See description below for more information before using this feature. |
relay_local_from |
Allows relaying if the domain portion of the mail sender is a local host. This should only be used if absolutely necessary as it opens a window for spammers. |
accept_unqualified_senders |
Normally, MAIL FROM: commands in the SMTP session will be refused
if the connection is a network connection and the sender address does not
include a domain name. If your setup sends local mail unqualified (i.e.
|
accept_unresolvable_domains |
Normally, MAIL FROM: commands in the SMTP session will be refused if the host part of the argument to MAIL FROM: cannot be located in the host name service (e.g., DNS). If you are inside a firewall that has only a limited view of the Internet host name space, this could cause problems. In this case you probably want to use this feature to accept all domains on input, even if they are unresolvable. |
access_db |
Turns on the access database feature. The access db gives
you the ability to allow or refuse to accept mail from
specified domains for administrative reasons. By default,
the access database specification is
`` |
blacklist_recipients |
Turns on the ability to block incoming mail for certain recipient usernames, hostnames, or addresses. For example, you can block incoming mail to user nobody, host foo.mydomain.com, or guest@bar.mydomain.com. These specifications are put in the access db as described on the Anti-Spam Configuration Control page.. |
rbl |
Turns on rejection of hosts found in the Realtime Blackhole List. If an argument is provided it is used as the name sever to contact; otherwise, the main RBL server at rbl.maps.vix.com is used. For details, see http://maps.vix.com/rbl/. |
loose_relay_check |
Normally, if a recipient using % addressing is used, e.g. user%site@othersite, and othersite is in class 'R', the check_rcpt ruleset will strip @othersite and recheck user@site for relaying. This feature changes that behavior. It should not be needed for most installations. |