# # Original Version # ---------------- # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/AntiSpam/antispam.check_local.uhowto.txt # # # ============================================================ # Install sendmail with RBL and Check_Local AntiSpam Features # ============================================================ # # =================================================================== # # # 15-Nov-02 amo Separate and Clean Up Documents # 31-Dec-02 amo Clean up documents for Sendmail-8.12.7 and check_local-5.5 # 27-Jan-03 amo Clean up docs # 30-Mar-03 amo Clean up for sendmail-8.12.9 # 29-Nov-03 amo Clean up for Sendmail-8.12.10 # 15-Dec-03 amo Added comments for -DDNSMAP # 16-Nov-04 amo Added devtools/OS/Linux # # # =================================================================== # # # # ========================================= # Install and Test a Generic Sendmail first ( everything compiles/links/works right ) # ========================================= # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/Install-HOWTO.txt # # # # ============================ # Install Check_local Antispam ( Header and Subject checking ) # ============================ # # Download and Install Check Local # -------------------------------- # http://www.digitalanswers.org/check_local # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/check_local.txt # # cd /usr/local/src # tar zxvfp check_local.5.6.tar.gz # # # ================================================== # Check_local Requires Sendmail w/ REGEX enabled # ================================================== cd /usr/local/src tar zxvfp sendmail.8.12.10.tar.gz cd sendmail-8.12.10 # # # vi devtools/bin/configure.sh # -DNEWDB -DMAP_REGEX -DDNSMAP # # vi devtools/OS/Linux # define(`confMAPDEF', `-DNEWDB -DMAP_REGEX -DDNSMAP') # # vi devtools/Site/site.config.m4 ( also link to site.Linux.m4 ) # dnl # # dnl # To Recompile w/ the right options # dnl # ---------------------------------- # dnl # rm -rf /usr/local/src/sendmail-8.12.10/obj.* # dnl # # dnl # # dnl # You should see these options defined during compile time # dnl # # dnl # # dnl # devtools/Site/site.config.m4 ( also link to site.Linux.m4 ) # dnl # # dnl Add these variables are required for check-local # dnl # # define(`confMAPDEF', `-DNEWDB -DMAP_REGEX -DDNSMAP ') # dnl # # dnl # # dnl # More Privacy Options # dnl # # define(`confPRIVACY_FLAGS', `novrfy, noexpn, needmailhelo, restrictmailq, restrictqrun, needexpnhelo, needvrfyhelo') # dnl # # dnl # end of site.config.m4 # # # # vi devtools/bin/Build # - seems to not be able to read site.Linux.m4 or site.config.m4 # [ -r $obj ] problem ??? # - force it to read the file # # # # make sure the above REGEX and NEWDB options are used ( make really clean ) # rm -rf /usr/local/src/sendmail-8.12.9/obj.Linux.2.4.19.i586 # make clean # sh Build # Fix any compiler/link related errrors # # # # Now copy the check_local macro's into sendmail # ---------------------------------------------- # cd /usr/local/src/sendmail-8.12.10/cf mv hack hack-8.12.10 # mkdir hack-local-5.6 ln -s hack-local-5.6 hack # # copy the check-local stuff # # cp -p hack-8.12.10/* hack-local-5.6 cp -p ../../check_local-5.6/hack/check* hack-local-5.6 # # cd hack-local-5.6 wget http://www.Linux-sec.net/Mail/etc.mail/linux-sec.m4 # # # # ============================ # Get a sample config.mc file ( w/ check_local antispam features ) # ============================ # cd sendmail-8.12.10/cf/cf # # wget http://www.Linux-sec.net/Mail/etc.mail/sendmail-8.12.10/sendmail-8.12.10.check_local.mc ln -s sendmail-8.12.10.check_local.mc config.mc # # # # Build the new sendmail.cf files # -------------------------------- sh Build config.cf # # # Properly Backup, Test and Install Sendmail # ------------------------------------------ # - backup everything first # # - sh Build install # # - cp config.mc /etc/mail/sendmail-8.12.10.mc # - cp config.cf /etc/mail/sendmail-8.12.10.cf # # # ======================================================== # Install Sendmail w/ Header and Subject antispam checking # ======================================================== # http://www.Linux-Sec.net/Mail/Sendmail-Install-HOWTO/Install-HOWTO.txt -- testing section # http://web.Linux-Sec.net/Mail/Sendmail/#Testing # # # end of file