| SPAM Assassin setup |
Step 1. Installing the SpamAssassin CPAN utility. You will need to do this as root. $ su - Once you have root privileges invoke cpan. # perl -MCPAN -e shell cpan> Now install with prerequisites policy set to ask. cpan> o conf prerequisites_policy ask cpan> install Mail::SpamAssassin You will get lots of output as the necessary modules are downloaded and compiled and installed. Step 2. Configuration. Edit the following "/etc/mail/spamassassin/local.cf" Here is a look at my file $ cat /etc/mail/spamassassin/local.cf # This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # ########################################################################### # # rewrite_subject 0 # report_safe 1 # trusted_networks 212.17.35. # # Below added from book # You may want to set this to 5, then, work your way down. # Currently I have this 3 required_hits 3 # This determines how spam is reported. Currently safe email is reported # in the message. report_safe 1 # The will rewrite the tag of the spam message. rewrite_subject 1 # By default, SpamAssassin will run RBL checks. If your ISP already # does this, set this to 1. skip_rbl_checks 0 Step 3. Update .procmail. You should update the .procmail file as follows. Here is my /home/chirico/.procmail file. $ cat /home/chirico/.procmailrc PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=/var/spool/mail DEFAULT=/var/spool/mail/chirico LOGFILE=/home/chirico/MailBAG MYHOME=/home/chirico # Must have folder MailTRASH TRASH=/home/chirico/MailTRASH # Will get everything from this mail :0 * ^From:.* This e-mail address is being protected from spambots. You need JavaScript enabled to view it $DEFAULT # Spamassassin :0fw * <300000 |/usr/local/bin/spamassassin
|















Legitcode.com : All Rights Reserved