You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Mark A. DeMichele" <de...@intellipro.com> on 2004/02/24 14:01:02 UTC

Pyzor, Razor, and DCC in Windows

>From what I read, it seems that RBL will work from a windows install,
but Pyzor, Razor and DCC will not.  Can anyone explain what limititation
in Windows is stopping this from working.  Would it just take someone
with windows programming knowledge to go in and make it work.  Do you
know if it would require modification to the perl code, or just writing
some sort of windows dll helper or something.  I'm an extreme novice at
Perl, but I've been programming in Windows for years using java, c++,
and a lot of Delphi.  I'm starting c# now.  If someone points me in the
right direction, I can take stab at it in my "free" time.

 

Thanks,

Mark

 

  _____  

From: Jakob Lauritsen [mailto:jl@missm.dk] 
Sent: Tuesday, February 24, 2004 4:55 AM
To: spamassassin-users@incubator.apache.org
Subject: Problems with RBL

 

 

 

I am running Spamassassin 2.63 on a Redhat 9.0 system. 

I have no problems running Pyzor, Razor and DCC but I am not able to run
RBL's. I have indeed installed Net::DNS but it keeps timing out.

 

Taken from debug output:

 

debug: Using results from Razor v2.36

debug: Found Razor2 part: part=0 engine=4 ct=0 cf=40

debug: leaving helper-app run mode

debug: Razor2 results: spam? 1  highest cf score: 40

debug: running raw-body-text per-line regexp tests; score so far=7.997

debug: running uri tests; score so far=7.997

debug: uri tests: Done uriRE

debug: running full-text regexp tests; score so far=7.997

debug: Razor2 is available

debug: Current PATH is:
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/
bin

debug: executable for pyzor was found at /usr/bin/pyzor

debug: Pyzor is available: /usr/bin/pyzor

debug: entering helper-app run mode

debug: Pyzor: got response: 66.250.40.33:24441  (200, 'OK')     0
0

debug: leaving helper-app run mode

debug: DCCifd is not available: no r/w dccifd socket found.

debug: executable for dccproc was found at /usr/local/bin/dccproc

debug: DCC is available: /usr/local/bin/dccproc

debug: entering helper-app run mode

debug: DCC: got response: X-DCC-EATSERVER-Metrics: www.imcc.dk 1166;
Body=many Fuz1=many Fuz2=many

debug: leaving helper-app run mode

debug: DCC: Listed! BODY: 999999 of 999999 FUZ1: 999999 of 999999 FUZ2:
999999 of 999999

debug: all '*To' addrs: neo@imcc.dk

debug: DNS MX records found: 1

debug: forged-HELO: from=pacbell.net helo=192.168.2.178 by=www.imcc.dk

debug: forged-HELO: mismatch on HELO: '192.168.2.178' != 'pacbell.net'

debug: RBL: success for 0 of 11 queries

debug: RBL: timeout for njabl,njabl-notfirsthop after 13 seconds

debug: RBL: timeout for arix-df after 13 seconds

debug: RBL: timeout for sorbs,sorbs-notfirsthop after 13 seconds

debug: RBL: timeout for rfci-dsn after 13 seconds

debug: RBL: timeout for opm after 13 seconds

debug: RBL: timeout for arix-ds after 13 seconds

debug: RBL: timeout for sbl after 13 seconds

debug: RBL: timeout for bsp-firsttrusted after 13 seconds

debug: RBL: timeout for dsbl after 13 seconds

debug: RBL: timeout for rfci after 13 seconds

debug: RBL: timeout for spamcop after 13 seconds

debug: running meta tests; score so far=15.283

debug: auto-learn? ham=0.1, spam=12, body-hits=10.179, head-hits=9.058

debug: auto-learn: currently using scoreset 3.  recomputing score based
on scoreset 1.

debug: Score set 1 chosen.

debug: auto-learn: original score: 17.782, recomputed score: 12.826

debug: Score set 3 chosen.

debug: auto-learn? yes, spam (12.826 > 12)

debug: Learning Spam

 

I have tried changing timeout but that does not help at all. Any
suggestions??

 

Jakob


Re[6]: Pyzor, Razor, and DCC in Windows

Posted by tBB <tb...@hideout.ath.cx>.
On Tue, 24 Feb 2004 12:28:52 -0600
"Jon Etkins" <ec...@mira.net> wrote:

> Yeah, I guess I should have said "If anyone comes up with a way to do
> so AND CARES TO SHARE IT WITH THE PEOPLE WHO HELPED DEVELOP THEIR
> PRODUCT IN THE FIRST PLACE, I'm sure I and a bunch of other folks would
> be glad to hear about it."

Completely agree!

Taken from the SAProxy page:
______________________________________________________
SAproxy Pro complies with the Perl Artistic License in the following
way:
    * Following 3(a) by placing the modifications in the Public Domain
    * Following 4(b)  by distributing a standard version of SpamAssassin and
SAproxy which are available here http://sourceforge.net/cvs/?group_id=25457
under the "spamassassin" and "pop3" modules, respectively

The source code for SAproxy can be browsed at the Sourceforge CVS page.
To obtain the original SpamAssassin product distribution, visit
http://www.spamassassin.org/. If the original products are no longer
available at these sites, contact Stata Labs for assistance. 
______________________________________________________
 
Last update to the pop3proxy.pl at sourceforge is older than 8 month ;(

Regards, Nico

+-------------------------------------------+
- Mailto: tbb@hideout.ath.cx
- No HTML mails please
+-------------------------------------------+


Re: Re[4]: Pyzor, Razor, and DCC in Windows

Posted by Jon Etkins <ec...@mira.net>.
Yeah, I guess I should have said "If anyone comes up with a way to do
so AND CARES TO SHARE IT WITH THE PEOPLE WHO HELPED DEVELOP THEIR
PRODUCT IN THE FIRST PLACE, I'm sure I and a bunch of other folks would
be glad to hear about it."

On Tue, 24 Feb 2004 19:18:09 +0100, tBB wrote:

>Hi
>
>> The post that was cited below was mine, so I guess I'll answer the
>> question. :)  No, it does not mean that dcc/razor/pyzor are working
>
>Funny crossposting :)
> 
>> AFAIK, nobody has yet gotten dcc/razor/pyzor working under win32.  If
>> you come up with a way to do so, I'm sure I and a bunch of other folks
>> would be glad to hear about it.
>
>Wait, I'll dig out my former posting:
>
>----------------snip----------------
>The developers of SAproxy (StataLabs) seem to have managed it to get
>everything running under win32 (dcc,razor,pyzor etc) with perl 5.8 in
>the latest 2.5 version of their commercial product SAProxy pro.
>
>Unfortunately they either haven't checked the changed pop3proxy code
>into the CVS yet (and I doubt they will) or the code hasn't found it's
>way into the CVS  which was the case with the last SAProxy version as
>they say..
>
>Perhaps some if not all Win32 problems can be solved using the latest
>Perl 5.8 version along with some updated modules like net-dns/tie-dns
>and tie-registry etc. but I don't know as I'm no perl programmer aswell.
>----------------snip----------------
>
>Regards, Nico
>
>+-------------------------------------------+
>- Mailto: tbb@hideout.ath.cx
>- No HTML mails please
>+-------------------------------------------+
>




Re[4]: Pyzor, Razor, and DCC in Windows

Posted by tBB <tb...@hideout.ath.cx>.
Hi

> The post that was cited below was mine, so I guess I'll answer the
> question. :)  No, it does not mean that dcc/razor/pyzor are working

Funny crossposting :)
 
> AFAIK, nobody has yet gotten dcc/razor/pyzor working under win32.  If
> you come up with a way to do so, I'm sure I and a bunch of other folks
> would be glad to hear about it.

Wait, I'll dig out my former posting:

----------------snip----------------
The developers of SAproxy (StataLabs) seem to have managed it to get
everything running under win32 (dcc,razor,pyzor etc) with perl 5.8 in
the latest 2.5 version of their commercial product SAProxy pro.

Unfortunately they either haven't checked the changed pop3proxy code
into the CVS yet (and I doubt they will) or the code hasn't found it's
way into the CVS  which was the case with the last SAProxy version as
they say..

Perhaps some if not all Win32 problems can be solved using the latest
Perl 5.8 version along with some updated modules like net-dns/tie-dns
and tie-registry etc. but I don't know as I'm no perl programmer aswell.
----------------snip----------------

Regards, Nico

+-------------------------------------------+
- Mailto: tbb@hideout.ath.cx
- No HTML mails please
+-------------------------------------------+


Re: Re[2]: Pyzor, Razor, and DCC in Windows

Posted by Jon Etkins <ec...@mira.net>.
The post that was cited below was mine, so I guess I'll answer the
question. :)  No, it does not mean that dcc/razor/pyzor are working
under win32.  My suggestion was originally in response to someone who
was having trouble getting the RBL tests to work when invoking SA from
pop3proxy, though they were working fine if he invoked SA from the
command line.

AFAIK, nobody has yet gotten dcc/razor/pyzor working under win32.  If
you come up with a way to do so, I'm sure I and a bunch of other folks
would be glad to hear about it.

Cheers,
  Jon Etkins
  Austin, TX


On Tue, 24 Feb 2004 15:43:59 +0100, tBB wrote:

>Hi,
>
>> "I initially had the same problem when I moved to SA2.63+pop3proxy this
>> week.  The instructions at http://www.openhandhome.com/howtosa.html
>> point out the need to add
>>   SET RES_NAMESERVERS=ipaddress [ipaddress2 [ipaddress3]]
>> to spamassassin.bat and sa-learn.bat, which sets a temporary
>> environment variable for the life of either of those scripts.  However,
>> since pop3proxy invokes SpamAssassin directly rather than via a batch
>> file, SA wasn't picking up the DNS addresses when pop3proxy invoked it.
>> 
>> To solve the problem, I created a system environment variable (Control
>> Panel - System - Advanced - Environment Variables) called
>> RES_NAMESERVERS and set it to the addresses of my nameservers.  This
>> makes the information available to every process on the machine, and
>> precludes the need to add it to the individual batch files.  Works like
>> a charm, and I only need to update the addresses in one place if they
>> ever change."
>
>Uhm..does that mean dcc/razor/pyzor are working on your system? As far
>as I know the instructions (howtosa.html) just point out how to get SA
>running under win32 at all but  that was not the initial question. It's
>also possible to compile SA to a standalone .exe (as I pointed out on
>the SAProxy mailinglist) with the latest Net::Dns module but that
>doesn't solve the dcc/razor/pyzor problem.
>
>Regards, Nico
>
>+-------------------------------------------+
>- Mailto: tbb@hideout.ath.cx
>- No HTML mails please
>+-------------------------------------------+
>




Re[2]: Pyzor, Razor, and DCC in Windows

Posted by tBB <tb...@hideout.ath.cx>.
Hi,

> "I initially had the same problem when I moved to SA2.63+pop3proxy this
> week.  The instructions at http://www.openhandhome.com/howtosa.html
> point out the need to add
>   SET RES_NAMESERVERS=ipaddress [ipaddress2 [ipaddress3]]
> to spamassassin.bat and sa-learn.bat, which sets a temporary
> environment variable for the life of either of those scripts.  However,
> since pop3proxy invokes SpamAssassin directly rather than via a batch
> file, SA wasn't picking up the DNS addresses when pop3proxy invoked it.
> 
> To solve the problem, I created a system environment variable (Control
> Panel - System - Advanced - Environment Variables) called
> RES_NAMESERVERS and set it to the addresses of my nameservers.  This
> makes the information available to every process on the machine, and
> precludes the need to add it to the individual batch files.  Works like
> a charm, and I only need to update the addresses in one place if they
> ever change."

Uhm..does that mean dcc/razor/pyzor are working on your system? As far
as I know the instructions (howtosa.html) just point out how to get SA
running under win32 at all but  that was not the initial question. It's
also possible to compile SA to a standalone .exe (as I pointed out on
the SAProxy mailinglist) with the latest Net::Dns module but that
doesn't solve the dcc/razor/pyzor problem.

Regards, Nico

+-------------------------------------------+
- Mailto: tbb@hideout.ath.cx
- No HTML mails please
+-------------------------------------------+


Re: Pyzor, Razor, and DCC in Windows

Posted by Bob Apthorpe <ap...@cynistar.net>.
Hi,

On Tue, 24 Feb 2004 14:42:58 +0100 tBB <tb...@hideout.ath.cx> wrote:
> On Tue, 24 Feb 2004 08:01:02 -0500
> "Mark A. DeMichele" <de...@intellipro.com> wrote:
> 
> > From what I read, it seems that RBL will work from a windows install,
> > but Pyzor, Razor and DCC will not.  Can anyone explain what limititation
> > in Windows is stopping this from working.  Would it just take someone
> > with windows programming knowledge to go in and make it work.  Do you
> > know if it would require modification to the perl code, or just writing
> > some sort of windows dll helper or something.  I'm an extreme novice at
> > Perl, but I've been programming in Windows for years using java, c++,
> > and a lot of Delphi.  I'm starting c# now.  If someone points me in the
> > right direction, I can take stab at it in my "free" time.

> Perhaps some if not all Win32 problems can be solved using the latest
> Perl 5.8 version along with some updated modules like net-dns/tie-dns
> and tie-registry etc. but I don't know as I'm no perl programmer aswell.

Updating the DNS modules is a good idea, as is setting the environment
variable RES_NAMESERVERS to contain the addresses of your nameservers.
>From a recent post to the SAProxy list:

"I initially had the same problem when I moved to SA2.63+pop3proxy this
week.  The instructions at http://www.openhandhome.com/howtosa.html
point out the need to add
  SET RES_NAMESERVERS=ipaddress [ipaddress2 [ipaddress3]]
to spamassassin.bat and sa-learn.bat, which sets a temporary
environment variable for the life of either of those scripts.  However,
since pop3proxy invokes SpamAssassin directly rather than via a batch
file, SA wasn't picking up the DNS addresses when pop3proxy invoked it.

To solve the problem, I created a system environment variable (Control
Panel - System - Advanced - Environment Variables) called
RES_NAMESERVERS and set it to the addresses of my nameservers.  This
makes the information available to every process on the machine, and
precludes the need to add it to the individual batch files.  Works like
a charm, and I only need to update the addresses in one place if they
ever change."

hth,

-- Bob

Re: Pyzor, Razor, and DCC in Windows

Posted by tBB <tb...@hideout.ath.cx>.
The developers of SAproxy (StataLabs) seem to have managed it to get
everything running under win32 (dcc,razor,pyzor etc) with perl 5.8 in
the latest 2.5 version of their commercial product SAProxy pro.

Unfortunately they either haven't checked the changed pop3proxy code
into the CVS yet (and I doubt they will) or the code hasn't found it's
way into the CVS  which was the case with the last SAProxy version as
they say..

Perhaps some if not all Win32 problems can be solved using the latest
Perl 5.8 version along with some updated modules like net-dns/tie-dns
and tie-registry etc. but I don't know as I'm no perl programmer aswell.

Regards, Nico

On Tue, 24 Feb 2004 08:01:02 -0500
"Mark A. DeMichele" <de...@intellipro.com> wrote:

> From what I read, it seems that RBL will work from a windows install,
> but Pyzor, Razor and DCC will not.  Can anyone explain what limititation
> in Windows is stopping this from working.  Would it just take someone
> with windows programming knowledge to go in and make it work.  Do you
> know if it would require modification to the perl code, or just writing
> some sort of windows dll helper or something.  I'm an extreme novice at
> Perl, but I've been programming in Windows for years using java, c++,
> and a lot of Delphi.  I'm starting c# now.  If someone points me in the
> right direction, I can take stab at it in my "free" time.
> 
>  
> 
> Thanks,
> 
> Mark
> 
>  
> 
>   _____  
> 
> From: Jakob Lauritsen [mailto:jl@missm.dk] 
> Sent: Tuesday, February 24, 2004 4:55 AM
> To: spamassassin-users@incubator.apache.org
> Subject: Problems with RBL

+-------------------------------------------+
- Mailto: tbb@hideout.ath.cx
- No HTML mails please
+-------------------------------------------+