I wish to implement a process to update my *.cf files for spamassasin using sa-update. I do not have a separate install of spamassasin and am not allowed to install anything outside of the the /opt/zimbra tree. I have read a great deal of documentation/forums but there is nothing specific to zimbra and sa-update/spamassassin. The only info I could find was from BUG 27844 which gives short instructions on how to install sa-update. I'm able to get sa-update to download the files and then dropped into the correct directory
Code:
[zimbra@lwmtai1 ~]$ ls -la /opt/zimbra/lib/spamassassin/3.002005/updates_spamassassin_org | head -10
total 596
drwxr-x--- 2 zimbra zimbra 4096 Mar 3 14:19 .
drwxr-x--- 3 zimbra zimbra 4096 Mar 3 13:01 ..
-rw-r----- 1 zimbra zimbra 5682 Mar 3 11:46 10_default_prefs.cf
-rw-r----- 1 zimbra zimbra 7504 Mar 3 11:46 20_advance_fee.cf
-rw-r----- 1 zimbra zimbra 6774 Mar 3 11:46 20_body_tests.cf
-rw-r----- 1 zimbra zimbra 1889 Mar 3 11:46 20_compensate.cf
-rw-r----- 1 zimbra zimbra 13402 Mar 3 11:46 20_dnsbl_tests.cf
-rw-r----- 1 zimbra zimbra 14993 Mar 3 11:46 20_drugs.cf
-rw-r----- 1 zimbra zimbra 11019 Mar 3 11:46 20_dynrdns.cf
But I am then unable to have spamassassin read these new files.
Is spamassassin suppose to read the default files in /opt/zimbra/conf/sapmmassassin and this new repository or just the new repositiory?
sa-update file:
Code:
my $DEF_RULES_DIR = '/opt/zimbra/conf/spamassassin';
my $LOCAL_RULES_DIR = '/opt/zimbra/conf/spamassassin';
my $LOCAL_STATE_DIR = '/opt/zimbra/lib/spamassassin';
SpamAssain.pm
Code:
$self->{LOCAL_STATE_DIR} ||= '/opt/zimbra/lib/spamassassin'; Any pointers help would be appreciated