On 9 Dec 2016, at 12:47, Mike Grau wrote:
Hello all
I'm confused ... what is the "recommended" version of Net::DNS to use
with an unpatched SpamAssassin-3.4.1? Or are there patches I ought to
apply for, say, Net::DNS 1.06?
Net::DNS has had some very good but rather weakly-controlled improvement
recently, including an API change that got rolled back, so the latest
(1.06) is probably the best choice (it's what I use.) However, all
recent versions cause a problem with the released version of SA. The
patch for that is minor:
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7223
https://svn.apache.org/viewvc?view=revision&revision=1691992
--- lib/Mail/SpamAssassin/DnsResolver.pm.orig 2015/07/20
18:23:18 1691991
+++ lib/Mail/SpamAssassin/DnsResolver.pm 2015/07/20 18:24:48 1691992
@@ -592,6 +592,9 @@
};
if ($packet) {
+ # RD flag needs to be set explicitly since Net::DNS 1.01, Bug 7223
+ $packet->header->rd(1);
+
# my $udp_payload_size = $self->{res}->udppacketsize;
my $udp_payload_size = $self->{conf}->{dns_options}->{edns};
if ($udp_payload_size && $udp_payload_size > 512) {