You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ky...@transplace.com on 2005/01/19 20:57:30 UTC

newbie question about adding rules

I am looking at adding some rulesets from SARE and we are planning on
putting them in the /usr/share/spamassassin directory (I know they get
overwritten when upgrading...).  I don't see anywhere that spamassassin is
calling the sets in that directory, which I believe is default?  If I add
these new rulesets to the share dir, what config changes do I need to make,
or do I just need to HUP it?

Thanks for your patience...  this is my second day with spamassassin...



Kyle Reynolds
972-731-4731
KyleReynolds@Transplace.com




Re: newbie question about adding rules

Posted by Matt Kettler <mk...@evi-inc.com>.
At 02:57 PM 1/19/2005, KyleReynolds@transplace.com wrote:
>I am looking at adding some rulesets from SARE and we are planning on
>putting them in the /usr/share/spamassassin directory (I know they get
>overwritten when upgrading...).  I don't see anywhere that spamassassin is
>calling the sets in that directory, which I believe is default?  If I add
>these new rulesets to the share dir, what config changes do I need to make,
>or do I just need to HUP it?

I'd strongly suggest NOT putting them in /usr/share/spamassassin.. they 
won't get over-written when you upgrade, they'll get obliterated. The SA 
install process executes rm -f /usr/share/spamassassin/*

It also makes it more difficult to restore SA to a "stock" condition when 
debugging problems. Normally all you need to do is rename 
/etc/mail/spamassassin/. But if you've added files to /usr/share, you'll 
have to manually back them out.

/usr/share/spamassassin is very much intended to only contain the default 
ruleset, with no modifications or additions.

A preferable location would be to add the files to /etc/mail/spamassassin/

SA will read all .cf files from that directory, not just local.cf, so you 
don't even need to do anything special like append them to local.cf. Just 
copy em in.

That said, once you add files or change files in either place all you 
should need to do is HUP or restart spamd (if you use spamd) or any apps 
that call the SA API directly (if you use one of those such as MailScanner).


Re: newbie question about adding rules

Posted by "help@nantucket.net" <he...@nantucket.net>.
Put your rules in /etc/mail/spamassassin

they wont get written over

____________________


> From: KyleReynolds@transplace.com
> Date: Wed, 19 Jan 2005 13:57:30 -0600
> To: users@spamassassin.apache.org
> Subject: newbie question about adding rules
> 
> I am looking at adding some rulesets from SARE and we are planning on
> putting them in the /usr/share/spamassassin directory (I know they get
> overwritten when upgrading...).  I don't see anywhere that spamassassin is
> calling the sets in that directory, which I believe is default?  If I add
> these new rulesets to the share dir, what config changes do I need to make,
> or do I just need to HUP it?
> 
> Thanks for your patience...  this is my second day with spamassassin...
> 
> 
> 
> Kyle Reynolds
> 972-731-4731
> KyleReynolds@Transplace.com
> 
> 
>