Spamassasin rules - location, I am confused.

Discuss our MailScanner install script and MailScanner itself
Post Reply
nabuhonodozor
Junior Member
Posts: 48
Joined: 29 Oct 2007, 07:01

Spamassasin rules - location, I am confused.

Post by nabuhonodozor »

Hi,
I am trying to edit SA rules but I am little confused. I found their two location in my server.
1st. location: [Home]/var/lib/spamassassin
2nd. loc.: [Home]/usr/share/spamassassin

How can I find which of them use SA, or maybe SA use them both?

best regards,
Piotr
Sarah
Moderator
Posts: 825
Joined: 09 Dec 2006, 22:49

Post by Sarah »

Both of those locations are used by SA. The default rules included with SA are in /usr/share/spamassassin/, and the added rules (i.e. from SARE) are in /var/lib/spamassassin/[version]/. If you want to edit a rule, however, you should NOT edit the original rule file, but you should put any changes to scores etc. in /etc/mail/spamassassin/local.cf or in your own .cf file in /etc/mail/spamassassin/. Otherwise your changes will be overwritten.
nabuhonodozor
Junior Member
Posts: 48
Joined: 29 Oct 2007, 07:01

Post by nabuhonodozor »

Thanks Alot Sarah,
I wasnt sure what about update. Ill create separate file with rules instead.
Best,
Piotr
jols
Junior Member
Posts: 111
Joined: 08 May 2007, 04:43

Re: Spamassasin rules - location, I am confused.

Post by jols »

Regarding:

"but you should put any changes to scores etc. in /etc/mail/spamassassin/local.cf"

Is this (7 year old) advice still good?

It seems that the rules we've established in local.cf at the above location, are no longer taking effect.

Thanks.
Sarah
Moderator
Posts: 825
Joined: 09 Dec 2006, 22:49

Re: Spamassasin rules - location, I am confused.

Post by Sarah »

Rules in local.cf should work, unless they are overridden somewhere else, like in another .cf file in /etc/mail/spamassassin/. Try moving your rules to your own .cf file in /etc/mail/spamassassin/ and see if that works. We usually recommend using a separate file (like /etc/mail/spamassassin/configserver.cf, which we create) to ensure it is not overridden by mailscanner or spamassassin updates.
Post Reply