--On Wednesday, October 23, 2013 1:53 AM +0200 Karsten Bräckelmann <[email protected]> wrote:

On Tue, 2013-10-22 at 16:25 -0700, Quanah Gibson-Mount wrote:
--On Tuesday, October 22, 2013 12:18 AM +0200 Karsten Bräckelmann wrote:

> By setting $DEF_RULES_DIR to the same value as $LOCAL_RULES_DIR,
> placing stock rules in what's supposed to be strictly for
> site-specific conf, you override the fresh rules pulled by sa-update.

I'm not positive that is correct -- When sa-update runs, it pulls down
the  rules and adds a cf file to include them, with the name
updates_spamassassin_cf.  Given load order seems to be alphabetically
dependent, it should still override, I'm hoping. ;)

Well, what did you set $LOCAL_STATE_DIR to?

Continuing with the default dirs I used in my previous post, local state
dir would be /var/lib/spamassassin. SA generally, and sa-update in
particular are using a *versioned* schema inside local state dir.

Thus, if you set $LOCAL_STATE_DIR to the same as $LOCAL_RULES_DIR, you
will end up with a 3.00x00y/ directory in your site-specific config.
That versioned directory contains the update-channels in a dedicated dir
each (and a .cf file to include the contents). The versioned directory
will not be traversed recursively.

I stand to what I said.


But hey, don't just take my word for it. Please run 'spamassassin -D'.
The debug output will tell you which configuration SA reads, in what
order.

There's no versioned data anywhere. ;)

There is only /opt/zimbra/conf/spamassassin

(and after sa-update)

/opt/zimbra/conf/spamassassin/updates_spamassassin_org/

with /opt/zimbra/conf/updates_spamassassin_org.cf added for loading the rules.

They are definitely not equal values:

./Mail/SpamAssassin.pm: $self->{LOCAL_STATE_DIR} ||= '/opt/zimbra/data/spamassassin'; ./Mail/SpamAssassin.pm: $self->{LOCAL_RULES_DIR} ||= '/opt/zimbra/conf/spamassassin';

but /opt/zimbra/data/spamassassin doesn't even exist. :P

I'll definitely spend some time on getting this mess sorted out.

--Quanah



--

Quanah Gibson-Mount
Architect - Server
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Reply via email to