Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/postfix/src/smtpd accept domains with AAAA record o...
details: https://anonhg.NetBSD.org/src/rev/dfc8c0057540
branches: trunk
changeset: 533263:dfc8c0057540
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Jun 26 07:55:19 2002 +0000
description:
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 ab5d33ee7817 -r dfc8c0057540 gnu/dist/postfix/src/smtpd/smtpd_check.c
--- a/gnu/dist/postfix/src/smtpd/smtpd_check.c Wed Jun 26 06:50:14 2002 +0000
+++ b/gnu/dist/postfix/src/smtpd/smtpd_check.c Wed Jun 26 07:55:19 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