David Goldsmith <[EMAIL PROTECTED]> wrote on 25/02/2007 20:10:46:

> Bram Mertens wrote:
[...]
> > Lately however the number of SPAM messages getting through is 
increasing
> > rapidly so I could use some help.
[...]
> SA 3.1.x will look for rules in /usr/share/spamassassin,
> /var/lib/spamassassin and /etc/mail/spamassassin.  The last definition
> of any rule wins.
> 
> So your default version of the core rules are in /usr/share/spamassassin
> and if you use sa-update, then you will have newer versions of these
> rules under /var/lib/spamassassin/3.xxxxxx/updates_spamassassin_org*
> 
> If you use sa-update to download the SARE rulesets (one source is
> http://saupdates.openprotect.com/), then you would also have
> /var/lib/spamassassin/3.xxxxxx/saupdates_openprotect_org* with the
> latest SARE rules.
> 
> If you do this, you can delete any SARE rulesets from you
> /etc/mail/spamassassin directory (70_sare_*, 99_sare_*)
> 
> Any local rulesets you create, or modifications to core/SARE rules,
> should go in files in /etc/mail/spamassassin.
[...]

Thanks, this explains things perfectly!

Could this be added to the Wiki?  This has been covered several times on 
this list (though this is the first answer to really answer my questions).

Also since the rules in /etc/mail/spamassassin have precedence over the 
rules downloaded by sa-update people who have previously downloaded rules 
to /etc/mail/spamassassin (either manually or through RDJ) will still be 
using the older rules if they don't clean up /etc/mail/spamassassin.

So I would argue that the answer to "After sa-update completes, do I have 
to move the files somewhere for them to be used?" on 
http://wiki.apache.org/spamassassin/RuleUpdates isn't complete.
I'd suggest addign soemthing like:
After running sa-update for the first time old rules which are provided 
through one of sa-update's channels should be removed from 
/etc/mail/spamassassin (or whichever is our local rules directory) because 
the rules in this directory will take precedence over the rules in 
/var/lib/spamassassin/3.xxxx/.

And perhaps a section about how rules are looked for should be added as 
well showing the order in which the various folders are checked.  Perhaps 
the man-page should be updated as well.

Regards

Bram

Reply via email to