[Bug 196756] Spamilter: Add IPv6 AAAA Lookups for MtaHostChk

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 15 13:00:26 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196756

            Bug ID: 196756
           Summary: Spamilter: Add IPv6 AAAA Lookups for MtaHostChk
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: jvp at lateapex.net

The current (.60) version of spamilter included in the FreeBSD ports doesn't
support IPv6 AAAA lookups, if the user has enabled MtaHostChk in the config. 
If a MTA host connect via IPv6, spamilter's DNS lookup will always fail.  This
patch fixes that.

# diff dns.c dns-ipv6.c
70,71c70,71
<
<             rc = (res_nquery(statp, hn,ns_c_in,ns_t_a,packet,sizeof(packet))
== -1 ? 0 : 1);
---
> 			rc = ((res_nquery(statp, hn,ns_c_in,ns_t_a,packet,sizeof(packet)) == -1 ? 0 : 1) ||
> 			(res_nquery(statp, hn,ns_c_in,ns_t_aaaa,packet,sizeof(packet)) == -1 ? 0 : 1));

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list