Stephen Sargent

Software, Server and Network Configuration and Management

  • Increase font size
  • Default font size
  • Decrease font size

SpamAssassin - Setup

SpamAssassin - 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

Reference:
http://pm-doc.sourceforge.net/

 

 

 


Newsflash

Further Assistance, Inc. Hosting and Server Management

Domain Registration and Web Hosting solutions, Furtherassistance.com offers Server Management, Domain Registration and Web Hosting solutions to establish your web presence at prices you can afford!
Visit us online at http://furtherassistance.com to speak to a representative.

Furtherassistance.com web hosting plans are designed with premium features at great prices.
Check out Furtherassistance.com domain name services, with registration prices as low as $10 and an easy to use domain management system.
Furtherassistance.com offers Reseller Hosting Packages and Domain Name Reseller Plans, as well as customized services to fit your unique business needs.