techlist06 wrote:

>>>> If running 2.4.2, and SA 3.1.4, add LOCAL_STATE_DIR => '/var/lib', here:
>>>>
>>>> #   LOCAL_RULES_DIR   => '/etc/mail/spamassassin',
>>>>     LOCAL_STATE_DIR   => '/var/lib',
>>>> #see man Mail::SpamAssassin for other options
>>>>
>>>> stop amavisd and run amavisd debug-sa, see if it now reads the rules
>>>> from the new directory.
>>
>>> No.  That will change your configuration directory.  You don't need to
>>> do ANYTHING - really.  It Just Works.
>>
>> It Just Works if using amavisd-new >= 2.4.3 OR spamassassin >= 3.1.5,
>> neither is true in this case.

> I have amavisd-new-2.3.3 and just installed the latest spamassassin via tar 
> and install.  I ran sa-update and it built the /var/lib/.. version 
> directory.  What about the stuff in /etc/mail/spamassassin?

sa-update does not affect your SITE_RULES_DIR (in your case
/etc/mail/spamassassin) so everything there is still used.

> With those versions, what exactly do I need to edit to ensure sa-updated 
> things are being used?

You probably don't need to edit anything if you are using the latest
version of spamassassin - it should Just Work. If using older
versions, the change I noted above is in the amavisd executable itself
(sorry I did not mention that).

> And where do I stick other rules like those from SARE if I want to use them 
> now?
> Thanks,
> Scott

Let's assume your DEFAULT_RULES_DIR is /usr/share/spamassassin
(where your standard spamassassin rules are kept). When spamassassin
finds new rules downloaded via sa-update (/var/lib/spamassassin/...)
it no longer uses the rules in the DEFAULT_RULES_DIR so you don't want
to place SARE rules there. You likely want to keep them in the
SITE_RULES_DIR where you probably have them now (/etc/mail/spamassassin).

It's pretty simple, when SA finds the sa-update rules, it uses them
instead of the standard rules. The files in /etc/mail/spamassassin are
not affected.

I quote:

"Once the /var/lib/spamassassin/<spamassassin version> directory
exists, spamassassin expects to find all rules underneath that directory"

but SA will still read rules from your /etc/mail/spamassassin dir.

You can also use sa-update to dowload SARE rules:
http://marc.theaimsgroup.com/?l=spamassassin-users&m=115545719618240

There is also OpenProtect that packages the safest SARE rules:
http://marc.theaimsgroup.com/?l=spamassassin-users&m=115637139728022

If you do, then of course you would want to remove existing SARE rules
from /etc/mail/spamassassin (or subdirectory thereof).

Gary V


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to