Sunday, January 18, 2009

Installation of Spamassassin in Exim4 Debian

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

deb 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

Restart the spamassassin

/etc/init.d/spamassassin restart

Check the version of spamassassin -V

Updating the rules

sa-update -D

Tuning the Spamassassin


# 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

No comments: