Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 12:57:44 +0200
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        ports@FreeBSD.org, adamw@FreeBSD.org
Subject:   Re: FreeBSD Port: spamassassin-3.4.0_11
Message-ID:  <B907A9B7-66DD-4441-844F-F0CC7EF6C611@webweaving.org>
In-Reply-To: <20140624100737.GT2586@home.opsec.eu>
References:  <F868D930-1D30-478C-A5EC-2F0F7653E926@webweaving.org> <20140624100737.GT2586@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help

Op 24 jun. 2014, om 12:07 heeft Kurt Jaeger <lists@opsec.eu> het =
volgende geschreven:

> Hi!
>=20
>> Still trying to get to the bottom of it - but seeing issues after
>> todays pkg update.
>>=20
>> I suspect that the DNS API change
>>=20
>> 	https://issues.apache.org/SpamAssassin/show_bug.cgi?id=3D7057
>>=20
>> also hits us.

Meanwhile - got to the bottom if it - and it needs indeed said patch.

> It's being worked on in
>=20
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191101
>=20
> If you still see the problem, can you provide more details ?
> What did you test ? What was the output ?


The symptom is all DNS failing within Spam Assassin in the default =
FreeBSD 10-p3 with latest packages situations; logs will show:

	Jun 24 12:02:04 weser spamd[78829]: plugin: eval failed: =
available_nameservers: No DNS servers available!=20
	Jun 24 12:02:04 weser spamd[78829]:  (available_nameservers: =
[...] No DNS servers available!)=20
=09
and the solution is to apply the patch from above SA link (below) -OR- =
go to a version from apache.org >=3D revision 1603518; for which=20
there is not yet a release/tag =
(http://svn.apache.org/viewvc?view=3Drevision&revision=3D1603518).

Dw.


--- Mail/SpamAssassin/DnsResolver.pm.orig       2014-05-07 17:54:29 =
+0200
+++ Mail/SpamAssassin/DnsResolver.pm    2014-06-18 02:13:32 +0200
@@ -205,6 +205,8 @@
     dbg("dns: servers set by config to: %s", join(', ',@ns_addr_port));
   } elsif ($res) {  # default as provided by Net::DNS, e.g. =
/etc/resolv.conf
-    @ns_addr_port =3D map(untaint_var("[$_]:" . $res->{port}),
-                        @{$res->{nameservers}});
+    my @ns =3D $res->UNIVERSAL::can('nameservers') ? $res->nameservers
+                                                 : =
@{$res->{nameservers}};
+    my $port =3D $res->UNIVERSAL::can('port') ? $res->port : =
$res->{port};
+    @ns_addr_port =3D map(untaint_var("[$_]:" . $port), @ns);
     dbg("dns: servers obtained from Net::DNS : %s", join(', =
',@ns_addr_port));
   }




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B907A9B7-66DD-4441-844F-F0CC7EF6C611>