Sunday, January 18, 2009

Installation of Spamassassin in Exim4 Debian

Step 1: Add following to /etc/apt/sources.list

deb http://volatile.debian.net/debian-volatile sarge/volatile main contrib

Step 2: Install Spamassassin via apt-get


apt-get install spamassassin

Step 3: Enable spamassassin

edit /etc/default/spamassassin and enable spamd

Installation or updating using CPAN

perl -MCPAN -e shell
install Mail::SpamAssassin
reload CPAN
quit

Restart the spamassassin

/etc/init.d/spamassassin restart

Check the version of spamassassin -V

Updating the rules


sa-update -D

Tuning the Spamassassin

/etc/mai/spamassassin/local.cf

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

required_hits 4.0
report_safe 1
rewrite_header Subject *****[SPAM](_SCORE_)*****
use_bayes 1
auto_learn 1
ok_locales en

Useful Links

http://koivi.com/exim4-config/
http://www.linuxsupport.org.uk/sa/index.html

No comments: