]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.3-20050330
authorWietse Venema <wietse@porcupine.org>
Wed, 30 Mar 2005 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:30:59 +0000 (06:30 +0000)
13 files changed:
postfix/HISTORY
postfix/README_FILES/ADDRESS_VERIFICATION_README
postfix/conf/virtual
postfix/html/ADDRESS_VERIFICATION_README.html
postfix/html/virtual.5.html
postfix/man/man5/virtual.5
postfix/proto/ADDRESS_VERIFICATION_README.html
postfix/proto/virtual
postfix/src/cleanup/cleanup_api.c
postfix/src/global/mail_version.h
postfix/src/lmtp/lmtp_chat.c
postfix/src/smtp/smtp_addr.c
postfix/src/smtp/smtp_chat.c

index 7a23da1d93a2f6a4ed0454854a9b7e9e3890114e..4a5479ceffc39b2d7eaa8bf87c1f749b7baf37c6 100644 (file)
@@ -10567,6 +10567,13 @@ Apologies for any names omitted.
        tls/tls_mgr.h, tls/tls_mgr.c, tls/tls_client.c, tls/tls.h,
        smtp/smtp_proto.c.
 
+20050330
+
+       Bugfix: in some compilation environments the SMTP and LMTP
+       clients could ignore enhanced status codes in server replies.
+       Bug introduced 20050329 while polishing working code.  Files:
+       smtp/smtp_chat.c, lmtp/lmtp_chat.c.
+
 Open problems:
 
        Med: disable header address rewriting after XCLIENT?
index 9f96c817af84a6d5dd94cc75b3f7c035a6d5e1f8..1b86e0d56f6d186946f6a69799b0e0466f6f3781 100644 (file)
@@ -159,8 +159,9 @@ domains that often appear in forged email.
         bigfoot.com reject_unverified_sender
         ... etcetera ...
 
-A list of frequently forged MAIL FROM domains can be found at http://
-www.monkeys.com/anti-spam/filtering/sender-domain-validate.in.
+At some point in cyberspace/time, a list of frequently forged MAIL FROM domains
+could be found at http://www.monkeys.com/anti-spam/filtering/sender-domain-
+validate.in.
 
 NOTE: One of the first things you might want to do is to turn on sender address
 verification for all your own domains.
index 668332f9efdd80342743e3ef39da39d327fc9e00..6aa789bc97e93bdc134143a00ab9f393c9f9b1ac 100644 (file)
@@ -1,4 +1,4 @@
-# VIRTUAL(5)                                             VIRTUAL(5)
+# VIRTUAL(5)                                                          VIRTUAL(5)
 # 
 # NAME
 #        virtual - Postfix virtual alias table format
 #        postmap -q - /etc/postfix/virtual <inputfile
 # 
 # DESCRIPTION
-#        The  optional  virtual(5)  alias  table  specifies address
-#        aliasing  for  arbitrary  local  or  non-local   recipient
-#        addresses.  Virtual  aliasing is recursive, and is done by
-#        the Postfix cleanup(8) daemon.
+#        The  optional  virtual(5)  alias  table rewrites recipient
+#        addresses for all local, virtual and remote mail  destina-
+#        tions.   This is unlike the aliases(5) table which is used
+#        only for local(8) delivery.  Virtual  aliasing  is  recur-
+#        sive,  and is implemented by the Postfix cleanup(8) daemon
+#        before mail is queued.
 # 
 #        The main applications of virtual aliasing are:
 # 
 #            virtual_alias_maps = hash:/etc/postfix/virtual
 # 
 #            Note: some systems use dbm databases instead of  hash.
-#            See  the  output  from  "postconf  -m"  for  available
-#            database types.
+#            See  the output from "postconf -m" for available data-
+#            base types.
 # 
 #        /etc/postfix/virtual:
 #            virtual-alias.domain anything (right-hand content does not matter)
 #        constituent parts, nor is user+foo broken up into user and
 #        foo.
 # 
-#        Patterns are applied in the  order  as  specified  in  the
-#        table,  until  a  pattern is found that matches the search
+#        Patterns are applied in the order as specified in the  ta-
+#        ble,  until  a  pattern  is  found that matches the search
 #        string.
 # 
 #        Results are the same as with indexed  file  lookups,  with
 # TCP-BASED TABLES
 #        This section describes how the table lookups  change  when
 #        lookups are directed to a TCP-based server. For a descrip-
-#        tion  of  the  TCP  client/server  lookup  protocol,   see
-#        tcp_table(5).   This  feature  is  not available up to and
-#        including Postfix version 2.2.
+#        tion of the TCP client/server lookup protocol, see tcp_ta-
+#        ble(5).  This feature is not available up to and including
+#        Postfix version 2.2.
 # 
 #        Each lookup operation uses the entire address once.  Thus,
 #        user@domain  mail  addresses  are not broken up into their
 #        P.O. Box 704
 #        Yorktown Heights, NY 10598, USA
 # 
-#                                                        VIRTUAL(5)
+#                                                                     VIRTUAL(5)
index 62f8b1e6f51dbc54893f20c0ef9fc49957c20f8f..02a0a38d2ca85b1621bc1492b185ec2e36cc71e3 100644 (file)
@@ -274,9 +274,9 @@ specific domains that often appear in forged email. </p>
 </pre>
 </blockquote>
 
-<p> A list of frequently forged MAIL FROM domains can be found at
-<a href="http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in">http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in</a>.
-</p>
+<p> At some point in cyberspace/time, a list of frequently forged
+MAIL FROM domains could be found at
+<a href="http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in">http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in</a>.  </p>
 
 <p> NOTE: One of the first things you might want to do is to turn
 on sender address verification for all your own domains. </p>
index a4f0c1d87cb401357cb8b22ecc5e52ff1b3f32ec..51d3b7e9f43a500b2b1f634646d5fc6b6881097e 100644 (file)
@@ -17,10 +17,12 @@ VIRTUAL(5)                                                          VIRTUAL(5)
        <b>postmap -q - /etc/postfix/virtual</b> &lt;<i>inputfile</i>
 
 <b>DESCRIPTION</b>
-       The  optional  <a href="virtual.5.html"><b>virtual</b>(5)</a>  alias  table  specifies address
-       aliasing  for  arbitrary  local  or  non-local   recipient
-       addresses.  Virtual  aliasing is recursive, and is done by
-       the Postfix <a href="cleanup.8.html"><b>cleanup</b>(8)</a> daemon.
+       The  optional  <a href="virtual.5.html"><b>virtual</b>(5)</a>  alias  table rewrites recipient
+       addresses for all local, virtual and remote mail  destina-
+       tions.   This is unlike the <a href="aliases.5.html"><b>aliases</b>(5)</a> table which is used
+       only for <a href="local.8.html"><b>local</b>(8)</a> delivery.  Virtual  aliasing  is  recur-
+       sive,  and is implemented by the Postfix <a href="cleanup.8.html"><b>cleanup</b>(8)</a> daemon
+       before mail is queued.
 
        The main applications of virtual aliasing are:
 
index c2851b8b254eb69dc87ad0e4422acf7c321c9eaf..9250663fc706120a441f269974fa00d0d686e4f9 100644 (file)
@@ -16,9 +16,12 @@ Postfix virtual alias table format
 .SH DESCRIPTION
 .ad
 .fi
-The optional \fBvirtual\fR(5) alias table specifies address aliasing
-for arbitrary local or non-local recipient addresses. Virtual aliasing
-is recursive, and is done by the Postfix \fBcleanup\fR(8) daemon.
+The optional \fBvirtual\fR(5) alias table rewrites recipient
+addresses for all local, virtual and remote mail destinations.
+This is unlike the \fBaliases\fR(5) table which is used
+only for \fBlocal\fR(8) delivery.  Virtual aliasing is
+recursive, and is implemented by the Postfix \fBcleanup\fR(8)
+daemon before mail is queued.
 
 The main applications of virtual aliasing are:
 .IP \(bu
index 9bc1e415c468102a8a5c34680393cfe23b03ca11..091c4e562c740a31c8233da83eebd2ec70a20bfb 100644 (file)
@@ -274,9 +274,9 @@ specific domains that often appear in forged email. </p>
 </pre>
 </blockquote>
 
-<p> A list of frequently forged MAIL FROM domains can be found at
-http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in.
-</p>
+<p> At some point in cyberspace/time, a list of frequently forged
+MAIL FROM domains could be found at
+http://www.monkeys.com/anti-spam/filtering/sender-domain-validate.in.  </p>
 
 <p> NOTE: One of the first things you might want to do is to turn
 on sender address verification for all your own domains. </p>
index cf28b83d45c0cbad05a60fdc538e134b9769593a..8a2a0b1f22b3aa336671ea43f4a2c8bf399aa92b 100644 (file)
 #
 #      \fBpostmap -q - /etc/postfix/virtual <\fIinputfile\fR
 # DESCRIPTION
-#      The optional \fBvirtual\fR(5) alias table specifies address aliasing
-#      for arbitrary local or non-local recipient addresses. Virtual aliasing
-#      is recursive, and is done by the Postfix \fBcleanup\fR(8) daemon.
+#      The optional \fBvirtual\fR(5) alias table rewrites recipient
+#      addresses for all local, virtual and remote mail destinations.
+#      This is unlike the \fBaliases\fR(5) table which is used
+#      only for \fBlocal\fR(8) delivery.  Virtual aliasing is
+#      recursive, and is implemented by the Postfix \fBcleanup\fR(8)
+#      daemon before mail is queued.
 #
 #      The main applications of virtual aliasing are:
 # .IP \(bu
index 15fbdc577548100c0e45685d6d1fc0af10f578ec..cac4ce6a8934b3d08e38886849c642ba9c33c038 100644 (file)
@@ -193,7 +193,7 @@ int     cleanup_flush(CLEANUP_STATE *state)
     int     status;
     char   *encoding;
     CLEANUP_STAT_DETAIL *detail = 0;
-DSN_SPLIT dp;
+    DSN_SPLIT dp;
 
     /*
      * Raise these errors only if we examined all queue file records.
index 578989cf63df7c3f058da7434b5e3fd45cc521c7..de38eed80910f818455b4f148ed1552e797d909b 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only.
   */
-#define MAIL_RELEASE_DATE      "20050329"
+#define MAIL_RELEASE_DATE      "20050330"
 #define MAIL_VERSION_NUMBER    "2.3"
 
 #define VAR_MAIL_VERSION       "mail_version"
index 0a0c7e0fa61501a40a8fa1de4782e40b02da4122..f42790691e33c1730a1c265aa47868e048c9efdc 100644 (file)
@@ -238,7 +238,7 @@ LMTP_RESP *lmtp_chat_resp(LMTP_STATE *state)
        rdata.code = atoi(STR(state->buffer));
        for (cp = STR(state->buffer) + 4; *cp == ' '; cp++)
             /* void */ ;
-       if ((len = dsn_valid(cp)) > 0 && len < sizeof(DSN_SIZE)) {
+       if ((len = dsn_valid(cp)) > 0) {
            DSN_UPDATE(rdata.dsn, cp, len);
        } else if (strchr("245", STR(state->buffer)[0]) != 0) {
            DSN_UPDATE(rdata.dsn, "0.0.0", sizeof("0.0.0") - 1);
index 7609800af4e5d145bf3d79c2b7014d3a1c244550..618dfab9c83422b586ba36786cf7e4136f1c4091 100644 (file)
@@ -224,7 +224,8 @@ static DNS_RR *smtp_addr_one(DNS_RR *addr_list, char *host, unsigned pref,
            freeaddrinfo(res0);
            if (found == 0) {
                dsn_vstring_update(why, "5.4.4", "%s: host not found", host);
-               smtp_errno = SMTP_ERR_FAIL;
+               if (smtp_errno != SMTP_ERR_RETRY)
+                   smtp_errno = SMTP_ERR_FAIL;
            }
            return (addr_list);
        }
index ff9f219adea368deb6dd54b68c21406f3d23bc0c..889ce0fe18dc19e91ab699b72551305552a9a879 100644 (file)
@@ -261,7 +261,7 @@ SMTP_RESP *smtp_chat_resp(SMTP_SESSION *session)
        rdata.code = atoi(STR(session->buffer));
        for (cp = STR(session->buffer) + 4; *cp == ' '; cp++)
             /* void */ ;
-       if ((len = dsn_valid(cp)) > 0 && len < sizeof(DSN_SIZE)) {
+       if ((len = dsn_valid(cp)) > 0) {
            DSN_UPDATE(rdata.dsn, cp, len);
        } else if (strchr("245", STR(session->buffer)[0]) != 0) {
            DSN_UPDATE(rdata.dsn, "0.0.0", sizeof("0.0.0") - 1);