Securing-Optimizing-RH-Linux-1_2_257
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
257
This m4 macro enables the use of always_add_domain (add the local domain even on local
mail). With this feature all addresses that are locally delivered will be fully qualified. It is safe and
recommended to set this feature.
FEATURE(use_cw_file)
This m4 macro enables the use of use_cw_file (use /etc/sendmail.cw file for local hostnames).
With this feature you can declare a list of hosts in the /etc/sendmail.cw file for which the local
host is acting as the MX recipient. In other word this feature causes the file /etc/sendmail.cw to
be read to obtain alternative names for the local host.
FEATURE(local_procmail)
This m4 macro enables the use of local_procmail (use procmail as local delivery agent). With
this feature you can use procmail as a Sendmail delivery agent. Remember, it is recommended to
have procmail program installed in your Central Mail Hub server.
FEATURE(nouucp)
This m4 macro enables the use of nouucp (eliminate all UUCP support). With this feature the
macros of Sendmail that relate to UUCP service are ignored. In other word if you dont support
uucp service in your mail server, you can disable all uucp support in your Sendmail configuration
with this macro.
MAILER(procmail) and MAILER(smtp)
This m4 macro enables the use of procmail and smtp as delivery agents (in Sendmail by
default, delivery agents are not automatically declared). With this feature, you can specify which
ones you want to support and which ones to ignore. The MAILER(procmail) and MAILER(smtp)
options causes support for procmail, smtp, esmtp, smtp8 and relay delivery agents to be
included.
FEATURE(`access_db')
This m4 macro enable the access database feature. With this feature you have the ability through
the access db to allow or refuse to accept mail from specified domains. Usually this feature must
be available only in a Central Mail Hub server.
FEATURE(`blacklist_recipients')
This m4 macro enable the ability to block incoming mail for certain recipient usernames,
hostnames, or addresses. With this feature you can, for example, block incoming mail to user
nobody, host foo.mydomain.com, or guest@bar.mydomain.com.
FEATURE(`rbl')
This m4 macro enable Sendmail to reject mail from any site in the Realtime Blackhole List
database "rbl.maps.vix.com". The RBL is a database maintained in DNS of spammers. For
details, see "http://maps.vix.com/rbl/".
NOTE: Sometimes, a domain with which you wish to continue communications may end up in the
RBL list. In this case, Sendmail allows you to override these domains to allow their e-mail to be
received.
To do this, simply edit the "/etc/mail/access" file and add the appropriate domain information.
For example:
blacklisted.domain OK
Step 2
Now that our macro configuration file sendmail.mc is create, we can build the sendmail
configuration file sendmail.cf from these statements with the following commands: