--On Friday, October 25, 2013 6:04 PM -0700 Quanah Gibson-Mount <[email protected]> wrote:

Ok, so I want to finally get Zimbra's rules packaging and SA layout correct.

To rehash: We run SpamAsassin from Amavis. We currently run with the following values:

$DEF_RULES_DIR   = '/opt/zimbra/conf/spamassassin';
$LOCAL_RULES_DIR = '/opt/zimbra/conf/spamassassin';
$LOCAL_STATE_DIR = '/opt/zimbra/data/spamassassin';

I need everything to be under /opt/zimbra, and I understand that having the LOCAL_RULES_DIR match DEF_RULES_DIR is incorrect, and I need a solution for LOCAL_STATE_DIR.

Right now, I build SA with:

PREFIX=/opt/zimbra/zimbramon
DATADIR=/opt/zimbra/conf/spamassassin
CONFDIR=/opt/zimbra/conf/spamassassin
LOCALSTATEDIR=/opt/zimbra/data/spamassassin;

Makefile.PL notes:

 'DEFRULESDIR',      # A synonym for 'DATADIR'.
 'LOCALRULESDIR',    # " "       "   'CONFDIR'.
 'LOCALSTATEDIR',    # normally determined based on $*PREFIX.


So I believe what I want is:

DATADIR=/opt/zimbra/conf/spamassassin
CONFDIR=/opt/zimbra/data/spamassassin

However, I'm stuck exactly on what I should do for LOCALSTATEDIR. It cannot be based off of /opt/zimbra/zimbramon, as that's only writeable by root. Would:

LOCALSTATEDIR=/opt/zimbra/data/spamassassin/3.004.000 (to reflect 3.4.0 as the release) be correct?

Thanks!

--Quanah

--

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

Reply via email to