Sendmail 8.8.x Anti Spam
Anti-Spam Measures with Sendmail 8.8.x

There are a number of ways to implement an Anti-Spam scheme with Sendmail.  I will detail my favorite method, which
is very flexible, easy to administer, easy to install, easy to understand.

How this works

What you need

        1.  If you need to upgrade, do so: ftp://ftp.sendmail.org/pub/sendmail.8.8.8.tar.gz
             Note that if you have Sendmail 8.8.7, it is strongly advised to upgrade.  A bug
             exists in version 8.8.7 when used with these rules, deferred delivery mode, etc.

        2.  The M4 utility.  This is fairly standard on most UNIX systems, and is required to
             to generate a useable sendmail.cf file.  In fact, this must be present to do anything
             at all with this.  ftp://gatekeeper.dec.com:/pub/GNU/m4-1.4.tar.gz
 
        3.  The drop-in rules to implement the Relay Method:
 
                    LOCAL_CONFIG

Cut and paste the above into your mc file, make sure there are tabs in place of the 'large' spaces.  This is required to
generate a CF file, otherwise the M4 interpreter will not do the right thing.  Note that these rules go in after you have
entered the normal information, such as OSTYPE, and any other features you may need.

            4.  Create the CF file, with M4, and your newly-created MC file:
                % m4 file.mc > file.cf

            5.  Create /etc/mxlist, and /etc/spamlist.  These files are normal text files, one host per line:
                % touch /etc/mxlist /etc/spamlist

            6.  Add the required entries to /etc/mxlist.  Some of the required hosts that must be there are:
                localhost
                machine's name
                machine's FQDN

            7.  Add any other hosts that are allowed to relay through your host.

            8.  Install the new CF file.
 

Brad Doctor