You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Norman Zhang <no...@rd.arkonnetworks.com> on 2005/03/23 01:52:38 UTC

SA Rules

Hi,

I see that spamassassin rules are installed at

# ls /usr/share/spamassassin/
10_misc.cf             20_phrases.cf        30_text_fr.cf
20_anti_ratware.cf     20_porn.cf           30_text_nl.cf
20_body_tests.cf       20_ratware.cf        30_text_pl.cf
20_compensate.cf       20_uri_tests.cf      50_scores.cf
20_dnsbl_tests.cf      23_bayes.cf          60_whitelist.cf
20_drugs.cf            25_body_tests_es.cf  languages
20_fake_helo_tests.cf  25_hashcash.cf       triplets.txt
20_head_tests.cf       25_spf.cf            user_prefs.template
20_html_tests.cf       25_uribl.cf
20_meta_tests.cf       30_text_de.cf

May I ask how are these rules called? Is Bayes only 1 rule in SA? I 
noticed I needed to train Bayes with 200 SPAM/HAM before it functions. 
Does SA function without Bayes?

For the rules found at http://www.rulesemporium.com/rules.htm. Do I just 
copy them to the above folder?

Regards,
Norman Zhang

Re: SA Rules

Posted by Matt Kettler <mk...@evi-inc.com>.
Norman Zhang wrote:

> Hi,
>
> I see that spamassassin rules are installed at
>
> # ls /usr/share/spamassassin/
> 10_misc.cf             20_phrases.cf        30_text_fr.cf
> 20_anti_ratware.cf     20_porn.cf           30_text_nl.cf
> 20_body_tests.cf       20_ratware.cf        30_text_pl.cf
> 20_compensate.cf       20_uri_tests.cf      50_scores.cf
> 20_dnsbl_tests.cf      23_bayes.cf          60_whitelist.cf
> 20_drugs.cf            25_body_tests_es.cf  languages
> 20_fake_helo_tests.cf  25_hashcash.cf       triplets.txt
> 20_head_tests.cf       25_spf.cf            user_prefs.template
> 20_html_tests.cf       25_uribl.cf
> 20_meta_tests.cf       30_text_de.cf
>
> May I ask how are these rules called? 

Upon startup, spamassassin parses all of the hundreds of rules within
those files. It does this automaticaly.

> Is Bayes only 1 rule in SA?

No, it's several rules, and those rules are actualy hooks into the code
itself.

> I noticed I needed to train Bayes with 200 SPAM/HAM before it
> functions. Does SA function without Bayes?

Yes, SpamAssassin can run without bayes.

>
>
> For the rules found at http://www.rulesemporium.com/rules.htm. Do I
> just copy them to the above folder?

No, copy them into /etc/mail/spamassassin/

The /usr/share/spamassassin/ is intended for the default rules that ship
with SA, and the process of upgrading SA obliterates the whole directory
and recreates it.

/etc/mail/spamassassin/ is intended for your local add-ons, and will be
preserved during upgrade.