Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/gnu/dist/postfix/src/smtpd Pull up revision 1.10 (reque...



details:   https://anonhg.NetBSD.org/src/rev/dbe2928d4ee7
branches:  netbsd-1-6
changeset: 528096:dbe2928d4ee7
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 26 11:19:08 2002 +0000

description:
Pull up revision 1.10 (requested by itojun in ticket #375):
accept domains with AAAA record only.
(when emails get relayed from IPv6-only machines via IPv4/v6 node,
we will see this symptom)

diffstat:

 gnu/dist/postfix/src/smtpd/smtpd_check.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 8bc44b670f24 -r dbe2928d4ee7 gnu/dist/postfix/src/smtpd/smtpd_check.c
--- a/gnu/dist/postfix/src/smtpd/smtpd_check.c  Wed Jun 26 11:15:53 2002 +0000
+++ b/gnu/dist/postfix/src/smtpd/smtpd_check.c  Wed Jun 26 11:19:08 2002 +0000
@@ -920,7 +920,7 @@
     return (stat);
 }
 
-/* reject_unknown_hostname - fail if name has no A or MX record */
+/* reject_unknown_hostname - fail if name has no A, AAAA or MX record */
 
 static int reject_unknown_hostname(SMTPD_STATE *state, char *name,
                                        char *reply_name, char *reply_class)
@@ -932,7 +932,7 @@
        msg_info("%s: %s", myname, name);
 
     dns_status = dns_lookup_types(name, 0, (DNS_RR **) 0, (VSTRING *) 0,
-                                 (VSTRING *) 0, T_A, T_MX, 0);
+                                 (VSTRING *) 0, T_A, T_AAAA, T_MX, 0);
     if (dns_status != DNS_OK)
        return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
                                   "%d <%s>: %s rejected: Host not found",
@@ -942,7 +942,7 @@
     return (SMTPD_CHECK_DUNNO);
 }
 
-/* reject_unknown_mailhost - fail if name has no A or MX record */
+/* reject_unknown_mailhost - fail if name has no A, AAAA or MX record */
 
 static int reject_unknown_mailhost(SMTPD_STATE *state, const char *name,
                            const char *reply_name, const char *reply_class)
@@ -954,7 +954,7 @@
        msg_info("%s: %s", myname, name);
 
     dns_status = dns_lookup_types(name, 0, (DNS_RR **) 0, (VSTRING *) 0,
-                                 (VSTRING *) 0, T_A, T_MX, 0);
+                                 (VSTRING *) 0, T_A, T_AAAA, T_MX, 0);
     if (dns_status != DNS_OK)
        return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
                                   "%d <%s>: %s rejected: Domain not found",



Home | Main Index | Thread Index | Old Index