RE: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Schumacher Sent: Thursday, July 01, 2004 3:20 PM To: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
RE: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
The main thing one must keep in mind when using MIMEDefang is that MD has direct access to the SpamAssassin perl modules, so MD has a most of the control over SA tests, message modification, and configuration. If you were using some other config, like a local procmail/SpamAssassin combo, the local.cf file handles all of the SA configuration for discarding/rejecting/modifying email messages classified by SA. MIMEDefang, on the other hand, handles the actual modification of the email messages itself, so all of that rewrite subject and reporting stuff must be configured through the mimedefang-filter file, a key difference that can throw a curve at those who are accustomed to other SA configs. The $SALocalTestsOnly was clearly meant to follow the "skip_rbl_checks" convention in the SA local.cf file, setting either vars to 0 enables the rbl/network tests. - Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ole Craig Sent: Thursday, July 01, 2004 2:59 PM To: Matthew Schumacher Cc: [EMAIL PROTECTED] Subject: Re: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D On 07/01/04 at 10:40, 'twas brillig and Matthew Schumacher scrobe: > Ole Craig wrote: > > > > The SURBL plugin is a "network test". What's the value of > > $SADoNetTests in your MD filter file? If it's 0 (which is the default > > in the sample filter) then SpamAssassin won't do network tests, > > including SURBL. > > > > Ole > > Thanks for the reply, > > Where is the documentation for this? I don't see that var in any of the > filters I have nor does it return anything in google. I thought that > all of the spamassassin config was in the SA config files. 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. Sorry about that, Ole -- Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing Facility, UMass * for public key Need a seasoned *NIX admin in the Denver/Boulder area? Hire me! ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
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 [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
On 07/01/04 at 10:40, 'twas brillig and Matthew Schumacher scrobe: > Ole Craig wrote: > > > > The SURBL plugin is a "network test". What's the value of > > $SADoNetTests in your MD filter file? If it's 0 (which is the default > > in the sample filter) then SpamAssassin won't do network tests, > > including SURBL. > > > > Ole > > Thanks for the reply, > > Where is the documentation for this? I don't see that var in any of the > filters I have nor does it return anything in google. I thought that > all of the spamassassin config was in the SA config files. 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. Sorry about that, Ole -- Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing Facility, UMass * for public key Need a seasoned *NIX admin in the Denver/Boulder area? Hire me! ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
RE: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
It's $SALocalTestsOnly=0 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Schumacher Sent: Thursday, July 01, 2004 2:40 PM To: Ole Craig Cc: [EMAIL PROTECTED] Subject: Re: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D Ole Craig wrote: > > The SURBL plugin is a "network test". What's the value of > $SADoNetTests in your MD filter file? If it's 0 (which is the default > in the sample filter) then SpamAssassin won't do network tests, > including SURBL. > > Ole Thanks for the reply, Where is the documentation for this? I don't see that var in any of the filters I have nor does it return anything in google. I thought that all of the spamassassin config was in the SA config files. schu ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
Ole Craig wrote: The SURBL plugin is a "network test". What's the value of $SADoNetTests in your MD filter file? If it's 0 (which is the default in the sample filter) then SpamAssassin won't do network tests, including SURBL. Ole Thanks for the reply, Where is the documentation for this? I don't see that var in any of the filters I have nor does it return anything in google. I thought that all of the spamassassin config was in the SA config files. schu ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] Can't get surbl to work inside MD but works fine in spamassassin -D
On 07/01/04 at 10:23, 'twas brillig and Matthew Schumacher scrobe: > List, [...] > > I can't figure out why the mimedefang config is different, anyone have > any ideas? > The SURBL plugin is a "network test". What's the value of $SADoNetTests in your MD filter file? If it's 0 (which is the default in the sample filter) then SpamAssassin won't do network tests, including SURBL. Ole -- Ole Craig * UNIX, linux, SMTP-ninja; news, web; SGI martyr * CS Computing Facility, UMass * for public key Need a seasoned *NIX admin in the Denver/Boulder area? Hire me! ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang