On Tue, Jul 15, 2003 at 07:50:57PM -0400, Dragoncrest wrote:
>          Nobody knows anything about this error?
> 
> At 04:22 PM 7/14/03 -0400, Dragoncrest wrote:
> >Just viewing my mail logs today because i started getting fetchmail
> >errors saying I had duplicate processes running which usually singals
> >that I've got a stuck email somewhere.  In the process of checking the
> >mail logs I saw this pop up as SA was trying to process a message it
> >later identified as spam.
> >
> >Jul 14 15:18:46 dragoncrest spamd[6040]: razor2 check skipped: Bad file
> >descriptor Died at
> >/usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Dns.pm line 420,
> ><GEN545> chunk 1.
> >
> >Anybody know what this is?  I'm guessing it has to do with DNS
> >resolution, but I'm unsure.  Can anyone give me some insight into this
> >and if I need to be worried about it?

Erm ... _no_, actually. What's in the vicinity of line 420 of 
/usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Dns.pm 
on the machine with the problem? 

In the Mail-SpamAssassin-2.43 Dns.pm I have on my home system, it     
appears to be code related to razor2, with an intriguing note in
lines 403-405. This appears to be the area in which your Dns.pm 
is giving up the ghost, or so I suspect.

Is it possible that your firewall is blocking razor2 access from 
inside the protected network?

What is the level of the SpamAssassin code you are running? 

     374       my $rc =
     375         Razor2::Client::Agent->new('razor-check')
     376         ;                 # everything's in the module!
     377 
     378       if ($rc) {
     379         my %opt = (
     380             debug      => ($Mail::SpamAssassin::DEBUG->{enabled} and
     381                  $Mail::SpamAssassin::DEBUG->{razor} < -2), 
     382             foreground => 1,
     383             config     => $self->{conf}->{razor_config}
     384         );
     385         $rc->{opt} = \%opt;
     386         $rc->do_conf() or die $rc->errstr;
     387 
     388         my @msg     = ($fulltext);
     389         my $objects = $rc->prepare_objects( [EMAIL PROTECTED] )
     390           or die "error in prepare_objects";
     391         $rc->get_server_info() or die $rc->errprefix("checkit");
     392         my $sigs = $rc->compute_sigs($objects)
     393           or die "error in compute_sigs";
     394 
     395         # 
     396         # if mail is whitelisted, its not spam, so abort.
     397         #   
     398         if ( $rc->local_check( $objects->[0] ) ) {
     399           $response = 0;
     400         }
     401         else {
     402           if (!$rc->connect()) {
     403             # provide a better error message when servers are unavailable,
     404             # than "Bad file descriptor Died".
     405             die "could not connect to any servers\n";
     406           }
     407           $rc->check($objects) or die $rc->errprefix("checkit");
     408           $rc->disconnect() or die $rc->errprefix("checkit");
     409           $response = $objects->[0]->{spam};
     410         }
     411       }
     412       else {
     413         warn "undefined Razor2::Client::Agent\n";
     414       }
     415   
     416       alarm 0;
     417     };
     418 
     419     alarm 0;    # just in case

-- 
Mike Andrews
[EMAIL PROTECTED]
Tired old sysadmin since 1964


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to