Daniel O'Connor wrote: > Hi, > I am using Spam Assassin 3.0.4 called from MIMEDefang 2.51 on > a FreeBSD > 4.9 box with perl 5.6.2 and I get the following messages in > my maillog on occasion.. > > Jul 26 12:43:36 cain sm-mta[81183]: j6Q3DUp1081183: > from=<[EMAIL PROTECTED]>, size=4221, > class=-30, nrcpts=1, msgid=<[EMAIL PROTECTED]>, > proto=ESMTP, daemon=smtp, relay=mx2.freebsd.org [216.136.204.119] > Jul 26 12:43:36 cain mimedefang-multiplexor[80550]: Slave 0 > stderr: Failed to run __RFC_IGNORANT_ENVFROM RBL SpamAssassin > test, skipping: (Can't call method "bgsend" on an > undefined value at > /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/Dns.pm line > 112. ) Jul 26 12:43:36 cain mimedefang-multiplexor[80550]: Slave 0 > stderr: Failed to run NO_DNS_FOR_FROM RBL SpamAssassin test, > skipping: (Can't call method "bgsend" on an undefined > value at > /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/Dns.pm line > 141. ) Jul 26 12:43:36 cain mimedefang-multiplexor[80550]: Slave 0 > stderr: Failed to run DNS_FROM_AHBL_RHSBL RBL SpamAssassin > test, skipping: (Can't call method "bgsend" on an undefined value at > /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/Dns.pm > line 112. ) Jul 26 12:43:36 cain mimedefang.pl[80553]: > MDLOG,j6Q3DUp1081183,mail_in,,,<[EMAIL PROTECTED] org>,<[EMAIL PROTECTED]>,6-BETA1 iwi + wpa_supplicant fails, > and sometimes silently reboots > > ie the slave errors. > > I have.. > skip_rbl_checks 0 > use_razor2 0 > > ############################################################## > ############# # Add your own customised scores for some tests below. > The default scores are # read from the installed > "spamassassin.cf" file, but you can override them # here. To > see the list of tests and their default scores, go to # > http://spamassassin.taint.org/tests.html . > > urirhssub URIBL_JP_SURBL multi.surbl.org. A 64 > body URIBL_JP_SURBL eval:check_uridnsbl('URIBL_JP_SURBL') > describe URIBL_JP_SURBL Has URI in JP at > http://www.surbl.org/lists.html > tflags URIBL_JP_SURBL net > > score URIBL_JP_SURBL 3.0 > > trusted_networks 203.31.81.0/24 203.122.192.0/26 dns_available yes > > in the MD .cf file. > > Anyone have any clues about how I can resolve this? > Thanks.
I can't be sure, but I think the problem occurs if something went wrong with creating Net::DNS::Resolver object, on which the method bgsend gets called. Not sure why that error would occur, but older versions of DNS.pm have some problems/bugs. Do nslookups/digs from the command prompt work? And a very simple script that does DNS-lookups? My best bet would be to upgrade Perl to a recent version, such as 5.8.7. This should be fairly easy on FreeBSD through the ports-system. (Be aware though that some installed modules may need to be re-upgraded/re-installed, though I believe they made some changes to the perl-port recently to do this automatically.) Also upgrade to a recent version of Net::DNS (0.52+). Personally, I would use Razor2 too. It has an excellent spam-detection ratio, much better than rbl's/uribl's. Kind Regards, Sander Holthaus