[Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D

Chris Gauch cgauch at digicon.net
Thu Jul 1 15:35:00 EDT 2004


Restart MIMEDefang after you make changes to the mimedefang-filter file in
order for the filter changes take effect.  

Make sure Bayes is enabled in your sa-mimedefang.cf file (as following):
# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
bayes_auto_learn 1
bayes_learn_to_journal 1

# BAYES Path
bayes_path /[your_path_to_bayes]/bayes
bayes_file_mode 0666

# Enable auto-learning thresholds
bayes_auto_learn_threshold_nonspam 0.50
bayes_auto_learn_threshold_spam 15.00  

You won't see the bayes tests show up in your headers until enough messages
have been auto-learned.  Make sure defang can write to your bayes files and
has write permissions for the bayes directory.

Your syntax for enabling the network checks in mimedefang is correct
otherwise.

- Chris

-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of Matthew
Schumacher
Sent: Thursday, July 01, 2004 3:20 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Can't get surbl to work inside MD but works fine
in spamassassin -D

Ole Craig wrote:
> 	Urk. Sorry, that's a local permutation, which I've used for so
> long it's second nature. The one you want is $SALocalTestsOnly, which
> if set to 1 will *disable* network tests. Set it to 0 (before
> calling spam_assassin_init()->compile_now(1), if you have that set in
> filter_initialize) and you should be OK.
> 

Ole,

I put the following into my rule:


if ($Features{"SpamAssassin"}) {
     $SALocalTestsOnly = 0;
     spam_assassin_init()->compile_now(1) if 
defined(spam_assassin_init());
}

And I still don't get any network tests nor to I get any bayes filters, 
so I think there is something more wrong here.  Any other ideas before I 
start digging into the code?

schu
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



More information about the MIMEDefang mailing list