From 19b6598b23b8c2558e7df1117d58c2329743bb4f Mon Sep 17 00:00:00 2001 From: Wietse Venema Date: Sun, 28 Dec 2014 00:00:00 -0500 Subject: [PATCH] postfix-2.12-20141228 --- postfix/HISTORY | 18 ++ .../README_FILES/ADDRESS_VERIFICATION_README | 11 +- postfix/html/ADDRESS_VERIFICATION_README.html | 10 +- postfix/html/lmtp.8.html | 6 + postfix/html/postconf.5.html | 54 +++++ postfix/html/smtp.8.html | 6 + postfix/man/man5/postconf.5 | 55 +++++ postfix/man/man8/smtp.8 | 5 + postfix/mantools/postlink | 2 + .../proto/ADDRESS_VERIFICATION_README.html | 10 +- postfix/proto/postconf.proto | 46 ++++ postfix/src/bounce/bounce_template.c | 2 +- postfix/src/global/mail_params.h | 8 + postfix/src/global/mail_parm_split.c | 2 +- postfix/src/global/mail_version.h | 2 +- postfix/src/posttls-finger/posttls-finger.c | 4 +- postfix/src/smtp/lmtp_params.c | 1 + postfix/src/smtp/smtp.c | 11 + postfix/src/smtp/smtp.h | 6 + postfix/src/smtp/smtp_addr.c | 4 +- postfix/src/smtp/smtp_params.c | 1 + postfix/src/smtp/smtp_proto.c | 55 ++++- postfix/src/smtpd/smtpd_check.c | 8 +- postfix/src/tls/tls_client.c | 4 +- postfix/src/util/Makefile.in | 7 +- postfix/src/util/midna.c | 197 +++++++++++++----- postfix/src/util/midna.h | 6 +- postfix/src/util/midna_test.in | 14 ++ postfix/src/util/midna_test.ref | 71 +++++++ postfix/src/util/valid_utf8_hostname.c | 2 +- 30 files changed, 548 insertions(+), 80 deletions(-) create mode 100644 postfix/src/util/midna_test.in create mode 100644 postfix/src/util/midna_test.ref diff --git a/postfix/HISTORY b/postfix/HISTORY index 68cebf833..4b8cf432e 100644 --- a/postfix/HISTORY +++ b/postfix/HISTORY @@ -21191,3 +21191,21 @@ Apologies for any names omitted. child process. Background: some shells implement "IFS=foo command" as a permanent IFS change; this was allowed by standards at some point in time. File: postfix-install. + +20141227 + + Feature: smtp_address_verify_target (default: rcpt) that + determines what protocol stage decides if a recipient is + valid. Specify "data" for servers that reject recipients + after the DATA command. Files: mantools/postlink, + proto/postconf.proto, proto/ADDRESS_VERIFICATION_README.html, + global/mail_params.h, smtp/lmtp_params.c, smtp/smtp.c, + smtp/smtp.h, smtp/smtp_params.c, smtp/smtp_proto.c. + +20141228 + + Cleanup: the IDNA conversion routines now accept both + ASCII and UTF8 inputs. The functions als verify that + either their result is a valid ASCII domain name or that + it converts into a valid ASCII domain name. Files: + util/midna.c, util/midna_test.in, util/midna_test.ref. diff --git a/postfix/README_FILES/ADDRESS_VERIFICATION_README b/postfix/README_FILES/ADDRESS_VERIFICATION_README index cbd171639..69a5f93d3 100644 --- a/postfix/README_FILES/ADDRESS_VERIFICATION_README +++ b/postfix/README_FILES/ADDRESS_VERIFICATION_README @@ -81,6 +81,11 @@ postconf(5) for details. LLiimmiittaattiioonnss ooff aaddddrreessss vveerriiffiiccaattiioonn + * Postfix assumes that a remote SMTP server will reject unknown addresses in + reply to the RCPT TO command. However, some sites report this in reply to + the DATA command. For such sites you may configure a workaround with the + smtp_address_verify_target parameter (Postfix 2.12 and later). + * When verifying a remote address, Postfix probes the preferred MTAs for that address, without actually delivering mail. If a preferred MTA accepts the address, then Postfix assumes that the address is deliverable. In reality, @@ -108,9 +113,9 @@ LLiimmiittaattiioonnss ooff aaddddrreessss vveerriiffi here just in case people believe that it is a limitation. * Unfortunately, some sites do not reject unknown addresses in reply to the - RCPT TO command, but report a delivery failure in response to end of DATA - after a message is transferred. Postfix address verification does not work - with such sites. + RCPT TO or DATA command, but instead report a delivery failure in response + to end of DATA after a message is transferred. Postfix address verification + does not work with such sites. * By default, Postfix probe messages have a sender address "double- bounce@$myorigin" (with Postfix versions before 2.5, the default is diff --git a/postfix/html/ADDRESS_VERIFICATION_README.html b/postfix/html/ADDRESS_VERIFICATION_README.html index 7bf7adb81..b0fc5e461 100644 --- a/postfix/html/ADDRESS_VERIFICATION_README.html +++ b/postfix/html/ADDRESS_VERIFICATION_README.html @@ -198,6 +198,12 @@ details.