[Mimedefang] Re: $SASpamTester not defined in 2.57 but was in 2.51?
Kevin A. McGrail
kmcgrail at pccc.com
Fri Aug 4 11:40:03 EDT 2006
I just upgraded a machine from 2.51 to 2.57 and I'm having issues with a
major change with SASpamTester variable that I used.
Specifically, the changelog talks about having removed the compile_now call
but it also seemed to remove the entire AWL example as well and added a new
call to detect_and_load_perl_modules(); Right now, I don't believe
SASpamTester is defined which is breaking my SQL AWL and subsequent DB
calls.
I've added the detect_and_load line and disabled the compile_now but any
more hints on why this doesn't work in 2.57 would be much appreciated.
# Detect and load Perl modules
detect_and_load_perl_modules();
# The next lines force SpamAssassin modules to be loaded and rules
# to be compiled immediately. This may improve performance on busy
# mail servers. Comment the lines out if you don't like them.
if ($Features{"SpamAssassin"}) {
#$SALocalTestsOnly = 1; # I do NOT want network tests
$SALocalTestsOnly = 0; # I DO want network tests
#REMOVED PER DFS BUT NOT REALLY SURE WHY ;-)
#spam_assassin_init()->compile_now(1) if defined(spam_assassin_init());
# If you want to use auto-whitelisting:
if (defined($SASpamTester)) {
use Mail::SpamAssassin::SQLBasedAddrList;
my $awl = Mail::SpamAssassin::SQLBasedAddrList->new();
$SASpamTester->set_persistent_address_list_factory($awl) if
defined($awl);
}
}
&
$SASpamTester->load_scoreonly_sql('olgcva-global');
Regards,
KAM
More information about the MIMEDefang
mailing list