diff --git a/Changes b/Changes index 49452cd..a864b4f 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Next Version + require_resolvable_fromhost ignores DNS search path (i.e. it expects fully resolved domains) (Robert Spier, Charlie Brady) + new plugin auth_vpopmaild (Robin Bowes) new plugin auth_checkpassword (Matt Simerson) diff --git a/plugins/require_resolvable_fromhost b/plugins/require_resolvable_fromhost index a949460..e9e2a91 100644 --- a/plugins/require_resolvable_fromhost +++ b/plugins/require_resolvable_fromhost @@ -58,7 +58,7 @@ sub check_dns { return 1 if $host =~ m/^\[(\d{1,3}\.){3}\d{1,3}\]$/; - my $res = new Net::DNS::Resolver; + my $res = new Net::DNS::Resolver(dnsrch => 0); $res->tcp_timeout(30); $res->udp_timeout(30); my @mx = mx($res, $host); @@ -116,7 +116,7 @@ sub is_valid { sub mx_valid { my ($self, $name, $host) = @_; - my $res = new Net::DNS::Resolver; + my $res = new Net::DNS::Resolver(dnsrch => 0); # IP in MX return is_valid($name) if ip_is_ipv4($name) or ip_is_ipv6($name);