diff options
author | itojun <itojun@pkgsrc.org> | 2002-06-27 04:47:54 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2002-06-27 04:47:54 +0000 |
commit | f9f89527175545c3e62d901cae1249f46287988e (patch) | |
tree | d71cc7ea4178e1a221a21e715ba90123ddab08b1 /mail/postfix | |
parent | 3b5520554b62ac3ac3726f2a52dff136e155e57d (diff) | |
download | pkgsrc-f9f89527175545c3e62d901cae1249f46287988e.tar.gz |
accept emails with domains with AAAA only.
the patch was sent to wietse already.
Diffstat (limited to 'mail/postfix')
-rw-r--r-- | mail/postfix/distinfo | 3 | ||||
-rw-r--r-- | mail/postfix/patches/patch-ag | 40 |
2 files changed, 42 insertions, 1 deletions
diff --git a/mail/postfix/distinfo b/mail/postfix/distinfo index 6d8d6e859f1..30c463c6028 100644 --- a/mail/postfix/distinfo +++ b/mail/postfix/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2002/06/06 13:48:33 martti Exp $ +$NetBSD: distinfo,v 1.22 2002/06/27 04:47:54 itojun Exp $ SHA1 (postfix/postfix-1.1.11.tar.gz) = 3a28c32800f94df0c504df68c4c6191f48217c5c Size (postfix/postfix-1.1.11.tar.gz) = 1190741 bytes @@ -8,3 +8,4 @@ SHA1 (patch-ac) = 0c79f73f1a9327e97ab6e6910d03b479c849d9f4 SHA1 (patch-ad) = 78f24bf3f7e6829c2a5c9a402e33dea25f1a55d2 SHA1 (patch-ae) = 66908f37243ce4da24129ccb53120b4e068ffa1d SHA1 (patch-af) = fbee5a8854857e2a99c59bcfaee4775df735f086 +SHA1 (patch-ag) = 57fcf1c89ec7d9d4f454d6d9d6860a64127b9cac diff --git a/mail/postfix/patches/patch-ag b/mail/postfix/patches/patch-ag new file mode 100644 index 00000000000..d415b0cb7fb --- /dev/null +++ b/mail/postfix/patches/patch-ag @@ -0,0 +1,40 @@ +$NetBSD: patch-ag,v 1.4 2002/06/27 04:47:55 itojun Exp $ + +--- src/smtpd/smtpd_check.c- Thu Jun 27 13:46:28 2002 ++++ src/smtpd/smtpd_check.c Thu Jun 27 13:46:44 2002 +@@ -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", |