1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
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 |