On Saturday 24 July 2004 04:04 am, Hoyt Bailey wrote:
|
| I need to install filters but have forgotten how they should be set up
| and at the moment I cant find my notes. I have trained spamassassin
| with enough email (spam & ham) so they should be useful but cant get it
| to function.
Are you talking about filters in Kontact (Kmail), or are you talking about
rules for SA?
If filters, the uk site is an excellent step-by-step. For the *.cf rules,
just download them and copy them to /etc/mail/spamassassin. Five of my
favorites are "antidrug.cf","backhair.cf", "chickenpox.cf", "Obfu.cf" and
"weedsonly.cf". Be sure to run "spamassassin --lint" because of a typo or
two in backhair.
I'm attaching my /home/username/.spamassassin/user_prefs as a guide to what is
working for me. Note that I am using SA 2.55, so you wouldn't want to use
the am_biz section. Also, note that I filter very aggressively at 4.0 hits,
but still, false positives are extremely rare.
# 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 1
#report_header 1
#defang_mime 0
required_hits 4.0
spam_level_stars 3
subject_tag ***SPAM***
auto_whitelist_path /var/spool/spamassassin/auto-whitelist
auto_whitelist_file_mode 0666
score FROM_AND_TO_SAME_1 3
score MSGID_GOOD_EXCHANGE 0
score IN_REP_TO -1
score EMAIL_ATTRIBUTION -1
score ORIGINAL_MESSAGE -1
######## local rules #############################
score HTML_10_20 2.0
score HTML_20_30 2.2
#### end local.cf ####################################
#### more local rules ################################
describe MY_DOMAIN_NUMBERS_ONLY Domain names has numbers only
score MY_DOMAIN_NUMBERS_ONLY 2.0
# Domain name starts with number(s)
uri MY_DOMAIN_STARTS_NUMS
/[.\/@]+\d+[a-zA-Z\-]+[a-zA-Z0-9\-]*\.(com|net|biz|info)/i
describe MY_DOMAIN_STARTS_NUMS Domain name starts with numbers
score MY_DOMAIN_STARTS_NUMS 1.0
# Domain name ends with number(s)
uri MY_DOMAIN_ENDS_NUMS
/[.\/@]+[a-zA-Z]+[a-zA-Z0-9\-]*\d+\.(com|net|biz|info)/i
describe MY_DOMAIN_ENDS_NUMS Domain name ends with numbers
score MY_DOMAIN_ENDS_NUMS 1.0
# Single letter hosts, like http://d.spammers.com - in my corpus
# 108 SPAM and 0 ham
uri MY_SINGLE_LETTER_HOST /(http:\/\/|@)\w{1}\./
describe MY_SINGLE_LETTER_HOST Host name single letter only
score MY_SINGLE_LETTER_HOST 2.0
#Note: this AM_BIZ_SITE rule has been superceded by a distribution rule,
#BIZ_TLD, as of SA version 2.60; Anyone running 2.6x or newer should avoid
#AM_BIZ_SITE unless you want to double the hits.
uri AM_BIZ_SITE /S*\.biz/i
describe AM_BIZ_SITE Body has link to a *.biz site
score AM_BIZ_SITE 4.0
#### end more local rules ############################
use_bayes 1
score BAYES_00 0 0 -6.400 -6.400
score BAYES_01 0 0 -6.600 -6.600
score BAYES_10 0 0 -6.400 -5.801
score BAYES_20 0 0 -5.801 -3.101
score BAYES_30 0 0 -1.246 -1.604
#score BAYES_60 0 0 2.002 2.002
score BAYES_60 0 0 2.5005 2.5005
#score BAYES_70 0 0 2.637 2.637
score Bayes_70 0 0 3.003 3.003
score BAYES_80 0 0 4.1 4.1
score BAYES_90 0 0 4.2 4.2
score BAYES_99 0 0 4.300 4.3
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________