http://www.spamassassin.org
1. Download/unpack distribution
cd /root/archive
wget http://www.spamassassin.org/released/Mail-SpamAssassin-2.60.tar.gz
tar -xvzf Mail-SpamAssassin-2.60.tar.gz
cd Mail-SpamAssassin-2.60
2. Install
perl -MCPAN -e shell
o conf prerequisites_policy ask
install Mail::SpamAssassin
quit
3. Test
> spamassassin -t < sample-nonspam.txt > nonspam.out
examine nonspam.out - it should have a header that say the message is not spam
X-Spam-Status: No ...
> spamassassin -t < sample-spam.txt > spam.out
examine spam.out
X-Spam-Status: Yes
4. Spamd
cd spamd
cp cp redhat-rc-script.sh /etc/init.d/spamd
service spamd start
add startup symlinks
5. Integrate with qmail
cd /root/archive
wget http://www.gbnet.net/~jrg/qmail/ifspamh/ifspamh
edit ifspamh and set location of spamc to /usr/bin/spamc
http://cr.yp.to/mess822.html
wget http://cr.yp.to/software/mess822-0.58.tar.gz
tar -xvzf mess822-0.58.tar.gz
cd mess822-0.58
make
make setup check