]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-3.6-20201104
authorWietse Venema <wietse@porcupine.org>
Wed, 4 Nov 2020 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sun, 8 Nov 2020 03:01:44 +0000 (01:01 -0200)
36 files changed:
postfix/HISTORY
postfix/WISHLIST
postfix/html/postconf.5.html
postfix/man/man5/postconf.5
postfix/proto/postconf.proto
postfix/src/bounce/bounce_template.c
postfix/src/bounce/bounce_template.h
postfix/src/cleanup/cleanup_out.c
postfix/src/global/been_here.c
postfix/src/global/been_here.h
postfix/src/global/cleanup_strerror.c
postfix/src/global/cleanup_user.h
postfix/src/global/delivered_hdr.c
postfix/src/global/dsb_scan.c
postfix/src/global/dsb_scan.h
postfix/src/global/dsn_print.c
postfix/src/global/dsn_print.h
postfix/src/global/mail_params.h
postfix/src/global/mail_version.h
postfix/src/global/msg_stats.h
postfix/src/global/msg_stats_print.c
postfix/src/global/msg_stats_scan.c
postfix/src/global/rcpt_buf.c
postfix/src/global/rcpt_buf.h
postfix/src/global/rcpt_print.c
postfix/src/global/rcpt_print.h
postfix/src/master/master_vars.c
postfix/src/milter/milter_macros.c
postfix/src/qmqpd/qmqpd_peer.c
postfix/src/smtp/smtp_proto.c
postfix/src/util/inet_addr_host.c
postfix/src/util/inet_connect.c
postfix/src/util/inet_listen.c
postfix/src/util/inet_proto.c
postfix/src/util/inet_proto.h
postfix/src/util/mystrtok.c

index e06a1efc769401b61bc0602e331e09f785e976b1..611d162cc8c309e20ab310452f2ab2167ced183f 100644 (file)
@@ -25064,9 +25064,9 @@ Apologies for any names omitted.
        reused in the Postfix SMTP server. Files: smtp/smtp_sasl_proto.c,
        global/sacl_mech_filter.[hc].
 
-       Bugfix (introduced: Postfix 2.0): smtp_sasl_mechamism_filter
-       ignored table lookup errors, treating as 'not found'. Found while
-       refactoring code.
+       Bugfix (introduced: Postfix 2.0): smtp_sasl_mechanism_filter
+       ignored table lookup errors, treating them as 'not found'.
+       Found while refactoring code. File: smtp/smtp_sasl_proto.c.
 
        Feature: smtpd_sasl_mechanism_list (default: !external,
        static:rest) to avoid confusing errors when a SASL backend
@@ -25086,8 +25086,6 @@ Apologies for any names omitted.
 
 20200906-18
 
-       Baseline is postfix-3.6-20200906.
-
        Other debt: internal protocol identification. Each server
        sends the name of the internal protocol that it implements,
        and each client logs a warning if it receives the wrong
@@ -25216,10 +25214,11 @@ Apologies for any names omitted.
 
 20201011
 
-       Cleanup: save a copy of the postscreen_dnsbl_reply_map
-       lookup result. This has no effect when the recommended
-       texthash: look table is used, but it may avoid stale data
-       with other lookup tables. File: postscreen/postscreen_dnsbl.c.
+       Bugfix (introduced: Postfix 2.8): save a copy of the
+       postscreen_dnsbl_reply_map lookup result. This has no effect
+       when the recommended texthash: look table is used, but it
+       may avoid stale data with other lookup tables. File:
+       postscreen/postscreen_dnsbl.c.
 
 20201015
 
@@ -25258,3 +25257,20 @@ Apologies for any names omitted.
        Cleanup: don't split a space-comma separated address list
        on on space or comma inside a quoted string. Files:
        util/mystrtok.c, util/mystetok.ref, global/login_sender_match.c.
+
+20201101
+
+       Cleanup: the default "smtp_tls_dane_insecure_mx_policy = dane"
+       was forcing too many A/AAAA lookups for MX hosts in DANE mode.
+       The default is now "dane" when smtp_tls_security_level is "dane".
+       otherwise it is "may". File: global/mail_params.h.
+
+20201104
+
+       Bugfix (introduced: Postfix 3.5): the Postfix SMTP client
+       broke message headers longer than $line_length_limit, causing
+       subsequent header content to become message body content.
+       Reported by Andreas Weigel, fix by Viktor Dukhovni. File:
+       smtp/smtp_proto.c.
+
+       Added missing employer attributions to .c and .h files.
index 3ff40b112de507b538e2d0b8be01ea0db9af1e53..98295cc7e5bc6113d35f7245b7e7350843872a98 100644 (file)
@@ -1,6 +1,8 @@
 Wish list:
 
        Does tlsproxy terminate to soon after 'postfix reload'?
+       like, while a session is still im progress? Does it depend
+       on the server or client role?
 
        Eliminate duplicate user_acl check from sendmail, and pass
        the result through the postdrop-to-sendmail protocol. This
@@ -17,13 +19,13 @@ Wish list:
        parameter. For example:
        http://postfix.1071664.n5.nabble.com/Relay-attempt-questions-td103646.html
 
-       check_mumble_mx_access also generates synthetic MX records
-       i.e. A/AAAA where no MX exists.
+       Document that check_mumble_mx_access generates synthetic
+       MX records i.e. A/AAAA where no MX exists.
 
        Someone suggested adding References: and In-Reply-To: headers
        in bounce messages. Downside: that will make it harder to
        delete a bounce without deleting other mail. Therefore do
-       not enable by defalut.
+       not enable by default.
 
        Hardening the half-dane behavior: some sites may rely on
        current behavior which allows original MX domain name for
index 95c418fe75cd3ca1b72fc7f63ae9d01d089a6880..d696afd0d36a4d3c5dc33e91fc13e3702f418970 100644 (file)
@@ -12528,7 +12528,7 @@ TLS connection reuse</a>" for background details. </p>
 </DD>
 
 <DT><b><a name="smtp_tls_dane_insecure_mx_policy">smtp_tls_dane_insecure_mx_policy</a>
-(default: dane)</b></DT><DD>
+(default: see "postconf -d" output)</b></DT><DD>
 
 <p> The TLS policy for MX hosts with "secure" TLSA records when the
 nexthop destination security level is <b>dane</b>, but the MX
@@ -12544,7 +12544,7 @@ handshake fails, mail may be sent in the clear. </dd>
 <dd> The TLSA records will signal a requirement to use TLS.  While
 TLS encryption will be required, authentication will not be performed.
 </dd>
-<dt><b>dane</b> (default)</dt>
+<dt><b>dane</b></dt>
 <dd>The TLSA records will be used just as with "secure" MX records.
 TLS encryption will be required, and, if at least one of the TLSA
 records is "usable", authentication will be required.  When
@@ -12552,6 +12552,10 @@ authentication succeeds, it will be logged only as "Trusted", not
 "Verified", because the MX host name could have been forged.  </dd>
 </dl>
 
+<p> The default setting for Postfix &ge; 3.6 is "dane" with
+"<a href="postconf.5.html#smtp_tls_security_level">smtp_tls_security_level</a> = dane", otherwise "may".  With earlier
+Postfix versions the defauult setting was always "dane". </p>
+
 <p> Though with "insecure" MX records an active attacker can
 compromise SMTP transport security by returning forged MX records,
 such attacks are "tamper-evident" since any forged MX hostnames
index 93525b47214e2f57526009fba6f13bd42734a356..a54362d19f0256c077d15e7753e53120cde193ae 100644 (file)
@@ -8058,7 +8058,7 @@ See "Client\-side
 TLS connection reuse" for background details.
 .PP
 This feature is available in Postfix 3.4 and later.
-.SH smtp_tls_dane_insecure_mx_policy (default: dane)
+.SH smtp_tls_dane_insecure_mx_policy (default: see "postconf \-d" output)
 The TLS policy for MX hosts with "secure" TLSA records when the
 nexthop destination security level is \fBdane\fR, but the MX
 record was found via an "insecure" MX lookup.  The choices are:
@@ -8071,7 +8071,7 @@ handshake fails, mail may be sent in the clear.
 The TLSA records will signal a requirement to use TLS.  While
 TLS encryption will be required, authentication will not be performed.
 .br
-.IP "\fBdane\fR (default)"
+.IP "\fBdane\fR"
 The TLSA records will be used just as with "secure" MX records.
 TLS encryption will be required, and, if at least one of the TLSA
 records is "usable", authentication will be required.  When
@@ -8079,6 +8079,10 @@ authentication succeeds, it will be logged only as "Trusted", not
 "Verified", because the MX host name could have been forged.
 .br
 .br
+The default setting for Postfix >= 3.6 is "dane" with
+"smtp_tls_security_level = dane", otherwise "may".  With earlier
+Postfix versions the defauult setting was always "dane".
+.PP
 Though with "insecure" MX records an active attacker can
 compromise SMTP transport security by returning forged MX records,
 such attacks are "tamper\-evident" since any forged MX hostnames
index c3a93430b35060b0699171c7c39c87eaae9d041f..d9cf51cdcfcae197af685db573d51273bb34ab25 100644 (file)
@@ -16937,7 +16937,7 @@ clients).  </p>
 This feature is available in Postfix 3.1 and later.
 </p>
 
-%PARAM smtp_tls_dane_insecure_mx_policy dane
+%PARAM smtp_tls_dane_insecure_mx_policy see "postconf -d" output
 
 <p> The TLS policy for MX hosts with "secure" TLSA records when the
 nexthop destination security level is <b>dane</b>, but the MX
@@ -16953,7 +16953,7 @@ handshake fails, mail may be sent in the clear. </dd>
 <dd> The TLSA records will signal a requirement to use TLS.  While
 TLS encryption will be required, authentication will not be performed.
 </dd>
-<dt><b>dane</b> (default)</dt>
+<dt><b>dane</b></dt>
 <dd>The TLSA records will be used just as with "secure" MX records.
 TLS encryption will be required, and, if at least one of the TLSA
 records is "usable", authentication will be required.  When
@@ -16961,6 +16961,10 @@ authentication succeeds, it will be logged only as "Trusted", not
 "Verified", because the MX host name could have been forged.  </dd>
 </dl>
 
+<p> The default setting for Postfix &ge; 3.6 is "dane" with
+"smtp_tls_security_level = dane", otherwise "may".  With earlier
+Postfix versions the defauult setting was always "dane". </p>
+
 <p> Though with "insecure" MX records an active attacker can
 compromise SMTP transport security by returning forged MX records,
 such attacks are "tamper-evident" since any forged MX hostnames
index e7dc4968b93dbdfde39991491944f57d1ff9d34d..629f83bfeac120f418fca079b7f187d9f58ae437 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 10359d42976ba4dd7e4b54de38e523fdb0c133a4..5b771e466e446503fb1fcd3eba8569f055ab7616 100644 (file)
@@ -88,6 +88,11 @@ void    bounce_templates_dump(VSTREAM *, BOUNCE_TEMPLATES *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 3ccebec90c2a61944708a65642450646fc99f4d4..5f8ed0a8cb39c4dacd75bd2de90bc9b223304d6c 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 8147829c485ea9c81470994391940b3329e8837f..d0c6820447db3601abba9dbf0c62c57663d039a7 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 460191389452762d885a5e8a42a88238abb19399..b5ac2d6f601d28700560a0f7789bba44770b1016 100644 (file)
@@ -47,6 +47,11 @@ extern int PRINTFLIKE(2, 3) been_here_drop(BH_TABLE *, const char *,...);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 7e3dfe5d9b728dc6753c7ae592685769ff405907..74a9406dae23b6169622ff441c512277d1ac5a12 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 3ad4c1b1c1362407402146e835800b4bf705c50c..d02e9cbfe2e2c21c1abf6ef8d1b7d6e889deaa1b 100644 (file)
@@ -101,6 +101,11 @@ extern const char *cleanup_strflags(unsigned);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index d86c9e7c2f5f25d7122a5934b7af65bc95f2b948..f1fc05d56a8d7514c6d2f521762dcd1ae0096644 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 4d668f1c2222c89be5b740808d35bdf37bf8eb3c..cf434d11970a20225b0f470314fc06695d2fcef0 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 99485bd8c67d8a7e85bbc2c6fc18702539d060dd..69340be3457a847cd7f7bf07839263848c00f284 100644 (file)
@@ -36,6 +36,11 @@ extern int dsb_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 26dcb21340924a09b81a1c1afd9de15f3d813a3f..b31ac63d89928ce108c2556079ab65533fab14c4 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 3e831debd649ddf834eead0be744ccfe6f1ee231..45808b7c6b2aee03ab3f4d3415601ef25596c3a9 100644 (file)
@@ -36,6 +36,11 @@ extern int dsn_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, void *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 12499f53b3a1bf6dedc95c4d5f186d5e729ece71..3ce52a7c0fe7e2436b5fa639993d7e416df133c7 100644 (file)
@@ -1635,7 +1635,7 @@ extern bool var_smtp_tls_force_tlsa;
 
  /* SMTP only */
 #define VAR_SMTP_TLS_INSECURE_MX_POLICY "smtp_tls_dane_insecure_mx_policy"
-#define DEF_SMTP_TLS_INSECURE_MX_POLICY "dane"
+#define DEF_SMTP_TLS_INSECURE_MX_POLICY "${{$smtp_tls_security_level} == {dane} ? {dane} : {may}}"
 extern char *var_smtp_tls_insecure_mx_policy;
 
  /*
index acce9f9b33fab5ef1c9df15bb8577cf2acd37f81..d5229e897a12a5dd1df8d9222dce93337bd95ad4 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20201101"
+#define MAIL_RELEASE_DATE      "20201104"
 #define MAIL_VERSION_NUMBER    "3.6"
 
 #ifdef SNAPSHOT
index 335faf4f146f969a39e529d0b241ee0af7e350d9..312accc0bac1a38739770a847c2c9a3c5110826d 100644 (file)
@@ -94,6 +94,11 @@ extern int msg_stats_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, void *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index f899aef6d2c9aa2f984e7ec1c48766da6d85cf5e..69c96b5595101c3de73b1975cc311ca29d9bad8b 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index c4b4f8942554a644915835efe0571c363a022586..504a6b0624ce9e6720c55bd988e07d7734f8f07f 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index ba9164ee0441cbab0a34bcd95c7abbd100eac2bc..8a3ae0f12b05b82bab3494aca9fd2de86802c795 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index c474af3b59b8947c0e34147c52ab0dea0b152ffe..770f011d9382b069e0391d8a32eb948f02ff1803 100644 (file)
@@ -57,6 +57,11 @@ extern int rcpb_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 6baabf16c1b31127fdd12af998adae3f3e64c2a3..b81f6a969a92e2e518fe2486514f8907c8806113 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 9ddb3b24ef7df0eb88b1fdf9a7ecba2cfdd6be2b..d501d2d0a09722d6ced9f3e6d25709326c520f1b 100644 (file)
@@ -36,6 +36,11 @@ extern int rcpt_print(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *);
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index cd88dcd7e6262b17a55d90b86d4b1376fed1352d..a2d54412b42d6e94136e65be21952059eedbdd1c 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index a1ddf968cc0ff6d4195bb4191fd4fefd09c3b757..8dd60e36a18d3c608e5943339afca06fe6b16e49 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 07d4792b4b42b9dcc2b96b2231ae030230abe25d..290b7f26f45057b6f914dfa5c660573c3a127c59 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 7fd63486367de68f78ead1b50c9f52818750c99c..2bb3d3ca6f7e9fb4a2f982955ba7a2d289ff5d71 100644 (file)
@@ -1389,17 +1389,17 @@ static void smtp_mime_fail(SMTP_STATE *state, int mime_errs)
 
 /* smtp_out_raw_or_mime - output buffer, raw output or MIME-aware */
 
-static int smtp_out_raw_or_mime(SMTP_STATE *state, VSTRING *buf)
+static int smtp_out_raw_or_mime(SMTP_STATE *state, int rec_type, VSTRING *buf)
 {
     SMTP_SESSION *session = state->session;
     int     mime_errs;
 
     if (session->mime_state == 0) {
-       smtp_text_out((void *) state, REC_TYPE_NORM, vstring_str(buf),
+       smtp_text_out((void *) state, rec_type, vstring_str(buf),
                      VSTRING_LEN(buf), (off_t) 0);
     } else {
        mime_errs =
-           mime_state_update(session->mime_state, REC_TYPE_NORM,
+           mime_state_update(session->mime_state, rec_type,
                              vstring_str(buf), VSTRING_LEN(buf));
        if (mime_errs) {
            smtp_mime_fail(state, mime_errs);
@@ -1423,7 +1423,7 @@ static int smtp_out_add_header(SMTP_STATE *state, const char *label,
                                 vstring_str(session->scratch2),
                                 QUOTE_FLAG_DEFAULT | QUOTE_FLAG_APPEND);
     vstring_strcat(session->scratch, gt);
-    return (smtp_out_raw_or_mime(state, session->scratch));
+    return (smtp_out_raw_or_mime(state, REC_TYPE_NORM, session->scratch));
 }
 
 /* smtp_out_add_headers - output additional headers, uses session->scratch* */
@@ -2307,7 +2307,8 @@ static int smtp_loop(SMTP_STATE *state, NOCLOBBER int send_state,
                while ((rec_type = rec_get(state->src, session->scratch, 0)) > 0) {
                    if (rec_type != REC_TYPE_NORM && rec_type != REC_TYPE_CONT)
                        break;
-                   if (smtp_out_raw_or_mime(state, session->scratch) < 0)
+                   if (smtp_out_raw_or_mime(state, rec_type,
+                                            session->scratch) < 0)
                        RETURN(0);
                    prev_type = rec_type;
                }
index 317ae859533c8c0f9f3adf16a9c1a588a0ef03f0..d2c9d84d963410aa300998a92f8c32691e50a24a 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index eaa272a4381b6090ea0071d7c5eb555a858c9f5e..4c8aa3cfe46beb1d80996dea9eeb09e959fc82bf 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System interfaces. */
index a87497274d9987c0ec9538ce2e516533bef9568c..31800cdc3793a5811cf0f89391f6e8e93c7e47c4 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System libraries. */
index d4ad47ffa68cd7128dbfdc423f56ee0ad9bb8989..fedf7610de45ee27b343880eb00e5181faf51833 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */
index 68ecce5107b3cdde9ae74931fb7a651d18301ab8..9175eaedbb7d8baba12a2193ef0856c24f44d005 100644 (file)
@@ -46,6 +46,11 @@ extern INET_PROTO_INFO *inet_proto_table;
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 #endif
index 9635887379be40111801a59dd2e24d80085e399b..85b15f3b3f1f433ad5b4a5cdfe1e2a1aef1da05d 100644 (file)
 /*     IBM T.J. Watson Research
 /*     P.O. Box 704
 /*     Yorktown Heights, NY 10598, USA
+/*
+/*     Wietse Venema
+/*     Google, Inc.
+/*     111 8th Avenue
+/*     New York, NY 10011, USA
 /*--*/
 
 /* System library. */