INSTALL INSTRUCTIONS This is basically my HOW-TO install SpamAssassin on a RedHat system using sendmail and check all the mail using a Milter. The only reason to run this install is if you want to run a sendmail that then simply forwards the mail to another mail exchange. These documents assume you have already installed Sendmail 8.12.5 and SpamAssassin 2.31 per the instructions at http://www.peregrinehw.com/download. #WGET, UNTAR & INSTALL THE VARIOUS SUPPORT DISTRIBUTIONS # # NOTE: Yes, I do know that CPAN can do this automatically but I am a bit of a freak who likes to confirm # the exact version I am getting. # #CREATE A TEMP DIR FOR THE TAR FILES rm -rf /tmp/20020807SPAM/ mkdir /tmp/20020807SPAM cd /tmp/20020807SPAM/ #GET ALL THE TAR FILES wget http://www.peregrinehw.com/downloads/SpamAssassin/spamass-milter-0.1.1.tar.gz #CLEAR OUT OLD SOURCE rm -rf /usr/src/spamass-milter-* #RE-COMPILE SENDMAIL WITH LIBMILTER cd /usr/src/sendmail-8.12.5 ####Delete the obj.Linux.* dirs, I think? rm -rf obj.Linux.* echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER')" >> devtools/Site/site.config.m4 cd libmilter sh Build sh Build install cd .. sh Build sh Build install cd /usr/src/sendmail-8.12.5/obj.Linux.2.4.19.i686/libsm cp libsm.a /usr/lib/ #INSTALL SPAMASS-MILTER cd /usr/src/ tar zxvf /files/spamass-milter-0.1.1.tar.gz cd spamass-milter-0.1.1/ #CHANGED 8-8-02 #Thanks to Serge Aumont for Pointing out we should edit the Makefile.am!!! vi Makefile.am automake ./configure make make install ln -s /usr/local/bin/spamass-milter /usr/local/bin/spamassmilter echo "INPUT_MAIL_FILTER(\`spamassassin', \`S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')" >> /etc/mail/sendmail.mc m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf #Needs a rc script to do this but I havent had time #Needs to daemonize itself #Needs cleanup of socket file #Needs to run NOT as root /usr/local/bin/spamassmilter /var/run/spamass.sock & Restart Sendmail and you should be on your way