HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_258
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 258 [root@deep /]# cd /var/tmp/sendmail-version/cf/cf/ [root@deep cf]# m4 ../m4/cf.m4 /etc/sendmail.mc > /etc/sendmail.cf NOTE: Here, the “../m4/cf.m4” tells m4 program where to look for its default configuration file information. The “/etc/mail/access and access.db” files for the Central Mail Hub The “access” database files can be created to accept or reject mail from selected domains. For example, you may choose to reject all mail originating from known spammers. These files “access” and “access.db” are not required for Local or  Neighbor Client setup. It is require only if you decide to set up a Central Mail Hub to handle all your mail. Also note that the use of a Central Mail Hub will improve the security and the management of other server and client on your network that run Sendmail. Step 1 Create the access file (touch /etc/mail/access) and add the following lines: # Description showing bellow for the format of this file comes from  # the Sendmail source distribution under "cf/README" file. # # The table itself uses e -mail addresses, domain names, and network # numbers as keys. For example, # #        spammer@aol.com           REJECT #        cyberspammer.com           REJECT #        192.168.212                REJECT # # would refuse mail from spammer@aol.com, any user from cyberspammer.com  # (or any host within the cyberspammer.com domain), and any host on the # 192.168.212.* network. # # The value part of the map can contain: # #        OK           Accept mail even if other rules in the #                        running ruleset would reject it, for example, #                        if the domain name is unresolvable. #        RELAY   Accept mail addressed to the indicated domain or #                        received from the indicated domain for relaying #                        through your SMTP server.  RELAY also serves as  #                        an implicit OK for the other checks. #        REJECT  Reject the sender or recipient with a general #                        purpose message. #        DISCARD    Discard the message completely using the #                        $#discard mailer.  This only works for sender #                        addresses (i.e., it indicates that you should #                        discard anything received from the indicated #                        domain). #        ### any text    where ### is an RFC 821 compliant error code #                        and "any text" is a message to return for #                        the command. # # For example: # #        cyberspammer.com        550 We don't accept mail from spammers  #        okay.cyberspammer.com     OK #        sendmail.org               OK #        128.32                    RELAY #