From owner-freebsd-ports@FreeBSD.ORG Tue Jun 24 10:59:35 2014 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3330338; Tue, 24 Jun 2014 10:59:34 +0000 (UTC) Received: from weser.webweaving.org (weser.webweaving.org [148.251.234.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 678142B26; Tue, 24 Jun 2014 10:59:34 +0000 (UTC) Received: from [10.11.0.104] (5ED06B39.cm-7-1b.dynamic.ziggo.nl [94.208.107.57]) (authenticated bits=0) by weser.webweaving.org (8.14.9/8.14.9) with ESMTP id s5OAvjsB081074 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 24 Jun 2014 12:58:16 +0200 (CEST) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: weser.webweaving.org: Host 5ED06B39.cm-7-1b.dynamic.ziggo.nl [94.208.107.57] claimed to be [10.11.0.104] Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: FreeBSD Port: spamassassin-3.4.0_11 From: Dirk-Willem van Gulik In-Reply-To: <20140624100737.GT2586@home.opsec.eu> Date: Tue, 24 Jun 2014 12:57:44 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140624100737.GT2586@home.opsec.eu> To: Kurt Jaeger X-Mailer: Apple Mail (2.1878.2) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (weser.webweaving.org [148.251.234.232]); Tue, 24 Jun 2014 12:58:17 +0200 (CEST) Cc: ports@FreeBSD.org, adamw@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 10:59:35 -0000 Op 24 jun. 2014, om 12:07 heeft Kurt Jaeger 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)); }