Source-Changes-HG archive

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

[src/trunk]: src/external/ibm-public/postfix/dist Import Postfix 2.6.6. Chang...



details:   https://anonhg.NetBSD.org/src/rev/95458ac95f7e
branches:  trunk
changeset: 754027:95458ac95f7e
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Apr 17 10:23:40 2010 +0000

description:
Import Postfix 2.6.6. Changes since version 2.6.5:
- "postmulti -p command" did not skip disabled instances.
- In the multi_instance_wrapper parameter, the expansion of
  $command_directory and $daemon_directory was broken.
- The address_verify_poll_count parameter value was not made
  stress-dependent by default. This defeated the purpose of making other
  settings stress-dependent by default with Postfix 2.6.
- Milter applications would hang up after receiving an unexpected
  SMFIC_HEADER (mail header) command. This problem happened with Milters
  that (legitimately) do not send replies for SMFIC_RCPT (recipient
  address) or SMFIC_DATA (start of message) commands.
- Core dump while an printing error message for a malformed %<letter>
  sequence in LDAP, MySQL or PostgreSQL lookup table configuration.
- Mail with zero recipients was forever stuck in the queue. This happened
  when "postsuper -r" was run after all the recipients of a message were
  delivered (or bounced), but before the message was deleted from the queue.
- With hostnames such as 1-2-3-4, the valid_hostname() fuction did not
  recognize the '-' as a non-numeric character, causing a legitimate name
  to be rejected as "invalid".
- The VRFY command did not accept a mailbox address inside <>.

diffstat:

 external/ibm-public/postfix/dist/HISTORY                       |  64 ++++++++++
 external/ibm-public/postfix/dist/README_FILES/RELEASE_NOTES    |   2 +-
 external/ibm-public/postfix/dist/RELEASE_NOTES                 |   2 +-
 external/ibm-public/postfix/dist/conf/access                   |  19 ++-
 external/ibm-public/postfix/dist/html/access.5.html            |  19 ++-
 external/ibm-public/postfix/dist/makedefs                      |   2 +
 external/ibm-public/postfix/dist/man/man5/access.5             |  19 ++-
 external/ibm-public/postfix/dist/proto/access                  |  17 ++-
 external/ibm-public/postfix/dist/src/global/cleanup_user.h     |   5 +-
 external/ibm-public/postfix/dist/src/global/db_common.c        |   4 +-
 external/ibm-public/postfix/dist/src/global/mail_params.c      |   6 +-
 external/ibm-public/postfix/dist/src/global/mail_version.h     |   6 +-
 external/ibm-public/postfix/dist/src/milter/milter8.c          |   9 +-
 external/ibm-public/postfix/dist/src/pickup/pickup.c           |   8 +-
 external/ibm-public/postfix/dist/src/postmulti/postmulti.c     |   4 +-
 external/ibm-public/postfix/dist/src/trivial-rewrite/resolve.c |  21 ++-
 external/ibm-public/postfix/dist/src/util/sys_defs.h           |  11 +-
 external/ibm-public/postfix/dist/src/util/valid_hostname.c     |   3 +-
 18 files changed, 188 insertions(+), 33 deletions(-)

diffs (truncated from 484 to 300 lines):

diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/HISTORY
--- a/external/ibm-public/postfix/dist/HISTORY  Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/HISTORY  Sat Apr 17 10:23:40 2010 +0000
@@ -15274,3 +15274,67 @@
 
        Bugfix: don't panic when an unexpected smtpd access map is
        specified. File: smtpd/smtpd_check.c.
+
+20090918
+
+       Bugfix (introduced Postfix 2.3): with Milter RCPT TO replies
+       turned off, there was no automatic flush-before-read on the
+       smtpd-to-milter stream, because the read was done on the
+       cleanup-to-milter stream. Problem reported by Stephen Warren.
+       File: milter/milter8.c.
+
+20091005
+
+       Bugfix: core dump while printing error message for malformed
+       %<letter> sequence in LDAP, MySQL or PostgreSQL configuration.
+       File: global/db_common.c. Fix by Victor Duchovni.
+
+20091012
+
+       Bugfix: postmulti did not skip commands with -p.  Luca
+       Berra. File: postmulti/postmulti.c.
+
+20091026
+
+       Cleanup: changed parameter evaluation order so that the
+       multi_instance_wrapper parameter value is evaluated after
+       the command and daemon directory parameters. File:
+       global/mail_params.h.
+
+20091209
+
+       Bugfix: sender_dependent_relayhost_maps did not reject an
+       empty lookup result, and did not recognize lookup errors,
+       thus treating errors as "not found". Problem found during
+       code maintenance. File: trivial-rewrite/resolve.c.
+
+20091229
+
+       Cleanup: the address_verify_poll_count default parameter
+       value is now stress-dependent, so that the Postfix SMTP
+       server will not wait (up to 6 seconds) for the address
+       verification result. File: global/mail_params.h.
+
+20100107
+
+       Documentation: the access(5) manual page did not document
+       the "send 521 and disconnect" behavior in the Postfix SMTP
+       server. File: proto/access.
+
+       Bugfix: the pickup daemon did not discard messages that
+       were requeued after all recipients were delivered (or
+       bounced), and the cleanup server tried to bounce such
+       messages. Files: pickup/pickup.c, global/cleanup_user.h.
+
+20100115
+
+       Bugfix: the valid_hostname() fuction did not set the
+       "non-numeric" flag after encountering the '-' character.
+       Reported by Jan Schampera.  File: util/valid_hostname.c.
+
+20100116
+
+       Workaround: as of Postfix 2.3 the VRFY command did not allow
+       a mailbox address inside <>, which broke expectations.  RFC
+       2821 (and 5321) is vague about the VRFY request format, but
+       spends lots of text on the reply format.  File: smtpd/smtpd.c.
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/README_FILES/RELEASE_NOTES
--- a/external/ibm-public/postfix/dist/README_FILES/RELEASE_NOTES       Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/README_FILES/RELEASE_NOTES       Sat Apr 17 10:23:40 2010 +0000
@@ -241,7 +241,7 @@
 Message-ID: or To: headers only when clients match
 $local_header_rewrite_clients.  Specify "always_add_missing_headers
 = yes" for backwards compatibility.  Adding such headers can break
-DKIM signatures that cover headers that are not present.
+DKIM signatures that cover headers that are not present. For
 compatibility with existing logfile processing software, Postfix
 will log ``message-id=<>'' for messages without Message-Id header.
 
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/RELEASE_NOTES
--- a/external/ibm-public/postfix/dist/RELEASE_NOTES    Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/RELEASE_NOTES    Sat Apr 17 10:23:40 2010 +0000
@@ -241,7 +241,7 @@
 Message-ID: or To: headers only when clients match
 $local_header_rewrite_clients.  Specify "always_add_missing_headers
 = yes" for backwards compatibility.  Adding such headers can break
-DKIM signatures that cover headers that are not present.
+DKIM signatures that cover headers that are not present. For
 compatibility with existing logfile processing software, Postfix
 will log ``message-id=<>'' for messages without Message-Id header.
 
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/conf/access
--- a/external/ibm-public/postfix/dist/conf/access      Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/conf/access      Sat Apr 17 10:23:40 2010 +0000
@@ -187,8 +187,23 @@
 #               text.  4NN means "try again later", while 5NN means
 #               "do not try again".
 # 
-#               The reply code "421" causes Postfix  to  disconnect
-#               immediately (Postfix version 2.3 and later).
+#               The following responses have  special  meaning  for
+#               the Postfix SMTP server:
+# 
+#               421 text (Postfix 2.3 and later)
+# 
+#               521 text (Postfix 2.6 and later)
+#                      After  responding  with the numerical three-
+#                      digit code and text, disconnect  immediately
+#                      from  the  SMTP  client.  This frees up SMTP
+#                      server resources so that they  can  be  made
+#                      available to another SMTP client.
+# 
+#                      Note: The "521" response should be used only
+#                      with botnets and other malware where  inter-
+#                      operability is of no concern.  The "send 521
+#                      and disconnect" behavior is NOT  defined  in
+#                      the SMTP standard.
 # 
 #        REJECT optional text...
 #               Reject  the  address etc. that matches the pattern.
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/html/access.5.html
--- a/external/ibm-public/postfix/dist/html/access.5.html       Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/html/access.5.html       Sat Apr 17 10:23:40 2010 +0000
@@ -193,8 +193,23 @@
               text.  <b>4</b><i>NN</i> means "try again later", while <b>5</b><i>NN</i> means
               "do not try again".
 
-              The reply code "421" causes Postfix  to  disconnect
-              immediately (Postfix version 2.3 and later).
+              The following responses have  special  meaning  for
+              the Postfix SMTP server:
+
+              <b>421</b> <i>text</i> (Postfix 2.3 and later)
+
+              <b>521</b> <i>text</i> (Postfix 2.6 and later)
+                     After  responding  with the numerical three-
+                     digit code and text, disconnect  immediately
+                     from  the  SMTP  client.  This frees up SMTP
+                     server resources so that they  can  be  made
+                     available to another SMTP client.
+
+                     Note: The "521" response should be used only
+                     with botnets and other malware where  inter-
+                     operability is of no concern.  The "send 521
+                     and disconnect" behavior is NOT  defined  in
+                     the SMTP standard.
 
        <b>REJECT</b> <i>optional text...</i>
               Reject  the  address etc. that matches the pattern.
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/makedefs
--- a/external/ibm-public/postfix/dist/makedefs Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/makedefs Sat Apr 17 10:23:40 2010 +0000
@@ -144,6 +144,8 @@
                ;;
   FreeBSD.7*)  SYSTYPE=FREEBSD7
                ;;
+  FreeBSD.8*)  SYSTYPE=FREEBSD8
+               ;;
   OpenBSD.2*)  SYSTYPE=OPENBSD2
                ;;
   OpenBSD.3*)  SYSTYPE=OPENBSD3
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/man/man5/access.5
--- a/external/ibm-public/postfix/dist/man/man5/access.5        Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/man/man5/access.5        Sat Apr 17 10:23:40 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: access.5,v 1.1.1.1 2009/06/23 10:08:33 tron Exp $
+.\"    $NetBSD: access.5,v 1.1.1.2 2010/04/17 10:24:09 tron Exp $
 .\"
 .TH ACCESS 5 
 .ad
@@ -187,9 +187,22 @@
 Reject the address etc. that matches the pattern, and respond with
 the numerical three-digit code and text. \fB4\fINN\fR means "try
 again later", while \fB5\fINN\fR means "do not try again".
+
+The following responses have special meaning for the Postfix
+SMTP server:
+.RS
+.IP "\fB421 \fItext\fR (Postfix 2.3 and later)"
+.IP "\fB521 \fItext\fR (Postfix 2.6 and later)"
+After responding with the numerical three-digit code and
+text, disconnect immediately from the SMTP client.  This
+frees up SMTP server resources so that they can be made
+available to another SMTP client.
 .IP
-The reply code "421" causes Postfix to disconnect immediately
-(Postfix version 2.3 and later).
+Note: The "521" response should be used only with botnets
+and other malware where interoperability is of no concern.
+The "send 521 and disconnect" behavior is NOT defined in
+the SMTP standard.
+.RE
 .IP "\fBREJECT \fIoptional text...\fR
 Reject the address etc. that matches the pattern. Reply with
 "\fB$access_map_reject_code \fIoptional text...\fR" when the
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/proto/access
--- a/external/ibm-public/postfix/dist/proto/access     Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/proto/access     Sat Apr 17 10:23:40 2010 +0000
@@ -165,9 +165,22 @@
 #      Reject the address etc. that matches the pattern, and respond with
 #      the numerical three-digit code and text. \fB4\fINN\fR means "try
 #      again later", while \fB5\fINN\fR means "do not try again".
+#
+#      The following responses have special meaning for the Postfix
+#      SMTP server:
+# .RS
+# .IP "\fB421 \fItext\fR (Postfix 2.3 and later)"
+# .IP "\fB521 \fItext\fR (Postfix 2.6 and later)"
+#      After responding with the numerical three-digit code and
+#      text, disconnect immediately from the SMTP client.  This
+#      frees up SMTP server resources so that they can be made
+#      available to another SMTP client.
 # .IP
-#      The reply code "421" causes Postfix to disconnect immediately
-#      (Postfix version 2.3 and later).
+#      Note: The "521" response should be used only with botnets
+#      and other malware where interoperability is of no concern.
+#      The "send 521 and disconnect" behavior is NOT defined in
+#      the SMTP standard.
+# .RE
 # .IP "\fBREJECT \fIoptional text...\fR
 #      Reject the address etc. that matches the pattern. Reply with
 #      "\fB$access_map_reject_code \fIoptional text...\fR" when the
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/src/global/cleanup_user.h
--- a/external/ibm-public/postfix/dist/src/global/cleanup_user.h        Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/src/global/cleanup_user.h        Sat Apr 17 10:23:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cleanup_user.h,v 1.1.1.1 2009/06/23 10:08:45 tron Exp $        */
+/*     $NetBSD: cleanup_user.h,v 1.1.1.2 2010/04/17 10:24:29 tron Exp $        */
 
 #ifndef _CLEANUP_USER_H_INCLUDED_
 #define _CLEANUP_USER_H_INCLUDED_
@@ -67,7 +67,8 @@
   * These are set when we can't bounce even if we were asked to.
   */
 #define CLEANUP_STAT_MASK_CANT_BOUNCE \
-       (CLEANUP_STAT_BAD | CLEANUP_STAT_WRITE | CLEANUP_STAT_DEFER)
+       (CLEANUP_STAT_BAD | CLEANUP_STAT_WRITE | CLEANUP_STAT_DEFER \
+           | CLEANUP_STAT_RCPT)
 
  /*
   * These are set when we can't examine every record of a message.
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/src/global/db_common.c
--- a/external/ibm-public/postfix/dist/src/global/db_common.c   Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/src/global/db_common.c   Sat Apr 17 10:23:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_common.c,v 1.1.1.1 2009/06/23 10:08:45 tron Exp $   */
+/*     $NetBSD: db_common.c,v 1.1.1.2 2010/04/17 10:24:30 tron Exp $   */
 
 /*++
 /* NAME
@@ -230,7 +230,7 @@
                break;
            default:
                msg_fatal("db_common_parse: %s: Invalid %s template: %s",
-                         dict->name, query ? "query" : "result", format);
+                      ctx->dict->name, query ? "query" : "result", format);
            }
     return dynamic;
 }
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/src/global/mail_params.c
--- a/external/ibm-public/postfix/dist/src/global/mail_params.c Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/src/global/mail_params.c Sat Apr 17 10:23:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mail_params.c,v 1.1.1.1 2009/06/23 10:08:46 tron Exp $ */
+/*     $NetBSD: mail_params.c,v 1.1.1.2 2010/04/17 10:24:32 tron Exp $ */
 
 /*++
 /* NAME
@@ -512,7 +512,7 @@
        VAR_SYSLOG_FACILITY, DEF_SYSLOG_FACILITY, &var_syslog_facility, 1, 0,
        VAR_INET_PROTOCOLS, DEF_INET_PROTOCOLS, &var_inet_protocols, 1, 0,
        VAR_MULTI_CONF_DIRS, DEF_MULTI_CONF_DIRS, &var_multi_conf_dirs, 0, 0,
-       VAR_MULTI_WRAPPER, DEF_MULTI_WRAPPER, &var_multi_wrapper, 0, 0,
+       /* multi_instance_wrapper may have dependencies but not dependents. */
        VAR_MULTI_GROUP, DEF_MULTI_GROUP, &var_multi_group, 0, 0,
        VAR_MULTI_NAME, DEF_MULTI_NAME, &var_multi_name, 0, 0,
        0,
@@ -569,6 +569,8 @@
        VAR_PROXYMAP_SERVICE, DEF_PROXYMAP_SERVICE, &var_proxymap_service, 1, 0,
        VAR_PROXYWRITE_SERVICE, DEF_PROXYWRITE_SERVICE, &var_proxywrite_service, 1, 0,
        VAR_INT_FILT_CLASSES, DEF_INT_FILT_CLASSES, &var_int_filt_classes, 0, 0,
+       /* multi_instance_wrapper may have dependencies but not dependents. */
+       VAR_MULTI_WRAPPER, DEF_MULTI_WRAPPER, &var_multi_wrapper, 0, 0,
        0,
     };
     static const CONFIG_STR_FN_TABLE function_str_defaults_2[] = {
diff -r 16d19e41adeb -r 95458ac95f7e external/ibm-public/postfix/dist/src/global/mail_version.h
--- a/external/ibm-public/postfix/dist/src/global/mail_version.h        Sat Apr 17 10:08:21 2010 +0000
+++ b/external/ibm-public/postfix/dist/src/global/mail_version.h        Sat Apr 17 10:23:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mail_version.h,v 1.1.1.2 2009/08/31 17:54:01 tron Exp $        */
+/*     $NetBSD: mail_version.h,v 1.1.1.3 2010/04/17 10:24:33 tron Exp $        */
 
 #ifndef _MAIL_VERSION_H_INCLUDED_
 #define _MAIL_VERSION_H_INCLUDED_



Home | Main Index | Thread Index | Old Index