On 01/05/2010 02:22 PM, Mark Martinec wrote:
On Tuesday 05 January 2010 19:43:59 Martin Gregorie wrote:
On Tue, 2010-01-05 at 12:37 -0500, Terry Carmen wrote:
I just did a "find" and have:
/usr/local/share/spamassassin/72_active.cf
/usr/share/spamassassin/72_active.cf
/var/lib/spamassassin/3.002005/updates_spamassassin_org/72_active.cf
Should I have all three or can I safely delete either or both of the
first two?
Since you're using amavis_new, which uses code from the SA labrary
rather than spamassassin itself, you'd better ask the amavis_new people
this question. There's no guarantee that amavis_new looks for rules in
the same places as spamassassin/spamd.
amavisd should pretty much mimic what spamd does regarding location
of rules directory, i.e. leaves them to a default as provided by
the SpamAssassin installation:
$sa_configpath = undef; # by default
$sa_siteconfigpath = undef; # by default
my($sa_args) = {
debug => !...@sa_debug_fac ? undef : \...@sa_debug_fac,
save_pattern_hits => (grep {lc($_) eq 'all'} @sa_debug_fac) ? 1 : 0,
dont_copy_prefs => 1,
require_rules => 1,
stop_at_threshold => 0,
need_tags => 'TIMING,LANGUAGES,RELAYCOUNTRY,ASN,ASNCIDR',
local_tests_only => $sa_local_tests_only,
home_dir_for_helpers => $helpers_home,
rules_filename => $sa_configpath,
site_rules_filename => $sa_siteconfigpath,
};
To make sure of paths used, start as: amavisd debug-sa
or more selectively: amavisd -d noall,config debug-sa
and check paths use as reported by SpamAssassin.
E.g.:
amavisd[35939]: SA dbg: config: using "/etc/mail/spamassassin"
for site rules pre files
amavisd[35939]: SA dbg: config: read file /etc/mail/spamassassin/init.pre
amavisd[35939]: SA dbg: config: using "/var/lib/spamassassin/3.003000"
for sys rules pre files
amavisd[35939]: SA dbg: config: using "/var/lib/spamassassin/3.003000"
for default rules dir
amavisd[35939]: SA dbg: config: using "/etc/mail/spamassassin"
for site rules dir
[etc]
*There should be only one 72_active.cf file.*
The right location for recent versions of SpamAssassin
is under /var/lib/spamassassin/3.x/
(or in /var/db/spamassassin/3.x/ on FreeBSD).
I now have only /var/lib/spamassassin/3.x/ and boh spamassassin and
amavis seem happy.
Thanks!
Terry