From bae8893bf5144f4fd277a82b06a0280d4e30a3ce Mon Sep 17 00:00:00 2001
From: Wietse Venema
This section lists limitations of the Postfix Milter implementation. -Some limitations will be removed disappear as support is extended +Some limitations will be removed as the implementation is extended over time. Of course the usual limitations of before-queue filtering will always apply. See the CONTENT_INSPECTION_README document for a discussion.
diff --git a/postfix/html/TLS_README.html b/postfix/html/TLS_README.html index 05e39eb5f..2d5f85181 100644 --- a/postfix/html/TLS_README.html +++ b/postfix/html/TLS_README.html @@ -1636,10 +1636,10 @@ will be used.The new policy table is specified via the smtp_tls_policy_maps parameter. This lists optional lookup tables with the Postfix SMTP client -TLS security policy by next-hop destination. It supersedes the obsolete -smtp_tls_per_site parameter. When $smtp_tls_policy_maps is not empty, -the smtp_tls_per_site parameter is ignored (a warning is written to the -logs if it is also non-empty).
+TLS security policy by next-hop destination. When $smtp_tls_policy_maps +is not empty, the obsolete smtp_tls_per_site parameter is ignored +(a warning is written to the logs if both parameter values are +non-empty).The TLS policy table is indexed by the full next-hop destination, which is either the recipient domain, or the verbatim next-hop diff --git a/postfix/html/bounce.8.html b/postfix/html/bounce.8.html index da749a991..f50ef1224 100644 --- a/postfix/html/bounce.8.html +++ b/postfix/html/bounce.8.html @@ -43,10 +43,11 @@ BOUNCE(8) BOUNCE(8) STANDARDS RFC 822 (ARPA Internet Text Messages) + RFC 2045 (Format of Internet Message Bodies) RFC 2822 (ARPA Internet Text Messages) RFC 3462 (Delivery Status Notifications) RFC 3464 (Delivery Status Notifications) - RFC 2045 (Format of Internet Message Bodies) + RFC 3834 (Auto-Submitted: message header) DIAGNOSTICS Problems and transactions are logged to syslogd(8). diff --git a/postfix/man/man8/bounce.8 b/postfix/man/man8/bounce.8 index 8d5d0e30c..ab5e86583 100644 --- a/postfix/man/man8/bounce.8 +++ b/postfix/man/man8/bounce.8 @@ -41,10 +41,11 @@ themselves, and that depend on retry logic in their own client. .na .nf RFC 822 (ARPA Internet Text Messages) +RFC 2045 (Format of Internet Message Bodies) RFC 2822 (ARPA Internet Text Messages) RFC 3462 (Delivery Status Notifications) RFC 3464 (Delivery Status Notifications) -RFC 2045 (Format of Internet Message Bodies) +RFC 3834 (Auto-Submitted: message header) .SH DIAGNOSTICS .ad .fi diff --git a/postfix/proto/MILTER_README.html b/postfix/proto/MILTER_README.html index b82d770ab..acd6dddfd 100644 --- a/postfix/proto/MILTER_README.html +++ b/postfix/proto/MILTER_README.html @@ -714,7 +714,7 @@ will dump core when you do this.
This section lists limitations of the Postfix Milter implementation. -Some limitations will be removed disappear as support is extended +Some limitations will be removed as the implementation is extended over time. Of course the usual limitations of before-queue filtering will always apply. See the CONTENT_INSPECTION_README document for a discussion.
diff --git a/postfix/proto/TLS_README.html b/postfix/proto/TLS_README.html index 461a00c30..8a17a9623 100644 --- a/postfix/proto/TLS_README.html +++ b/postfix/proto/TLS_README.html @@ -1636,10 +1636,10 @@ will be used.The new policy table is specified via the smtp_tls_policy_maps parameter. This lists optional lookup tables with the Postfix SMTP client -TLS security policy by next-hop destination. It supersedes the obsolete -smtp_tls_per_site parameter. When $smtp_tls_policy_maps is not empty, -the smtp_tls_per_site parameter is ignored (a warning is written to the -logs if it is also non-empty).
+TLS security policy by next-hop destination. When $smtp_tls_policy_maps +is not empty, the obsolete smtp_tls_per_site parameter is ignored +(a warning is written to the logs if both parameter values are +non-empty). The TLS policy table is indexed by the full next-hop destination,
which is either the recipient domain, or the verbatim next-hop
diff --git a/postfix/src/bounce/bounce.c b/postfix/src/bounce/bounce.c
index 67042f3f6..d9fe163b5 100644
--- a/postfix/src/bounce/bounce.c
+++ b/postfix/src/bounce/bounce.c
@@ -33,10 +33,11 @@
/* themselves, and that depend on retry logic in their own client.
/* STANDARDS
/* RFC 822 (ARPA Internet Text Messages)
+/* RFC 2045 (Format of Internet Message Bodies)
/* RFC 2822 (ARPA Internet Text Messages)
/* RFC 3462 (Delivery Status Notifications)
/* RFC 3464 (Delivery Status Notifications)
-/* RFC 2045 (Format of Internet Message Bodies)
+/* RFC 3834 (Auto-Submitted: message header)
/* DIAGNOSTICS
/* Problems and transactions are logged to \fBsyslogd\fR(8).
/* CONFIGURATION PARAMETERS
diff --git a/postfix/src/bounce/bounce_notify_util.c b/postfix/src/bounce/bounce_notify_util.c
index 39dc887e7..44a91ab55 100644
--- a/postfix/src/bounce/bounce_notify_util.c
+++ b/postfix/src/bounce/bounce_notify_util.c
@@ -453,6 +453,12 @@ int bounce_header(VSTREAM *bounce, BOUNCE_INFO *bounce_info,
STR(quote_822_local(bounce_info->buf, dest)),
postmaster_copy);
+ /*
+ * Auto-Submitted header, as per RFC 3834.
+ */
+ post_mail_fprintf(bounce, "Auto-Submitted: %s", postmaster_copy ?
+ "auto-generated" : "auto-replied");
+
/*
* MIME header. Use 8bit encoding when either the bounced message or the
* template requires it.
diff --git a/postfix/src/cleanup/cleanup_milter.c b/postfix/src/cleanup/cleanup_milter.c
index 6c865f52b..3cf7194cf 100644
--- a/postfix/src/cleanup/cleanup_milter.c
+++ b/postfix/src/cleanup/cleanup_milter.c
@@ -415,7 +415,7 @@ static off_t cleanup_find_header(CLEANUP_STATE *state, ssize_t index,
} \
if (msg_verbose > 1) \
msg_info("%s: read: %ld: %.*s", myname, (long) curr_offset, \
- LEN(buf) > 30 ? 30 : LEN(buf), STR(buf)); \
+ LEN(buf) > 30 ? 30 : (int) LEN(buf), STR(buf)); \
if (rec_type == REC_TYPE_DTXT) \
continue; \
if (rec_type != REC_TYPE_NORM && rec_type != REC_TYPE_CONT \
@@ -575,7 +575,7 @@ static const char *cleanup_patch_header(CLEANUP_STATE *state,
cleanup_out_header(state, buf);
if (msg_verbose > 1)
msg_info("%s: %ld: write %.*s", myname, (long) new_hdr_offset,
- LEN(buf) > 30 ? 30 : LEN(buf), STR(buf));
+ LEN(buf) > 30 ? 30 : (int) LEN(buf), STR(buf));
/*
* Optionally, save the existing text record or pointer record that will
@@ -585,7 +585,7 @@ static const char *cleanup_patch_header(CLEANUP_STATE *state,
CLEANUP_OUT_BUF(state, rec_type, old_rec_buf);
if (msg_verbose > 1)
msg_info("%s: write %.*s", myname, LEN(old_rec_buf) > 30 ?
- 30 : LEN(old_rec_buf), STR(old_rec_buf));
+ 30 : (int) LEN(old_rec_buf), STR(old_rec_buf));
}
/*
@@ -607,7 +607,7 @@ static const char *cleanup_patch_header(CLEANUP_STATE *state,
}
if (msg_verbose > 1)
msg_info("%s: %ld: read %.*s", myname, (long) read_offset,
- LEN(buf) > 30 ? 30 : LEN(buf), STR(buf));
+ LEN(buf) > 30 ? 30 : (int) LEN(buf), STR(buf));
if (rec_type != REC_TYPE_NORM && rec_type != REC_TYPE_CONT
&& rec_type != REC_TYPE_PTR && rec_type != REC_TYPE_DTXT)
msg_panic("%s: non-text/ptr record type %d in header, file %s",
@@ -626,7 +626,7 @@ static const char *cleanup_patch_header(CLEANUP_STATE *state,
CLEANUP_OUT_BUF(state, rec_type, buf);
if (msg_verbose > 1)
msg_info("%s: %ld: write %.*s", myname, (long) write_offset,
- LEN(buf) > 30 ? 30 : LEN(buf), STR(buf));
+ LEN(buf) > 30 ? 30 : (int) LEN(buf), STR(buf));
/* Update cached location of "append header" pointer record. */
if (saved_read_offset == state->append_hdr_pt_offset)
state->append_hdr_pt_offset = write_offset;
diff --git a/postfix/src/global/is_header.c b/postfix/src/global/is_header.c
index 1bf93a4c6..891e1372e 100644
--- a/postfix/src/global/is_header.c
+++ b/postfix/src/global/is_header.c
@@ -87,5 +87,6 @@ ssize_t is_header_buf(const char *str, ssize_t str_len)
return ((state == IN_CHAR || state == IN_CHAR_SPACE) ? len : 0);
}
}
+ /* Redundant return for future proofing. */
return (0);
}
diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h
index 94189cc2e..f4e82e63d 100644
--- a/postfix/src/global/mail_version.h
+++ b/postfix/src/global/mail_version.h
@@ -20,8 +20,8 @@
* Patches change both the patchlevel and the release date. Snapshots have no
* patchlevel; they change the release date only.
*/
-#define MAIL_RELEASE_DATE "20060704"
-#define MAIL_VERSION_NUMBER "2.3-RC5"
+#define MAIL_RELEASE_DATE "20060705"
+#define MAIL_VERSION_NUMBER "2.3-RC6"
#define VAR_MAIL_VERSION "mail_version"
#define DEF_MAIL_VERSION MAIL_VERSION_NUMBER
diff --git a/postfix/src/milter/milter8.c b/postfix/src/milter/milter8.c
index ccb833fd6..bf0753f7e 100644
--- a/postfix/src/milter/milter8.c
+++ b/postfix/src/milter/milter8.c
@@ -744,7 +744,7 @@ static int vmilter8_write_cmd(MILTER8 *milter, int command, ssize_t data_len,
VSTRING *buf;
const char *str;
const char **cpp;
- unsigned char ch;
+ char ch;
/*
* Deliver the packet.
@@ -1281,9 +1281,9 @@ static const char *milter8_event(MILTER8 *milter, int event,
* Get here when the reply was followed by data bytes that weren't
* supposed to be there.
*/
- msg_warn("milter %s: reply %s was followed by %d data bytes",
+ msg_warn("milter %s: reply %s was followed by %ld data bytes",
milter->m.name, (smfir_name = str_name_code(smfir_table, cmd)) != 0 ?
- smfir_name : "unknown", data_len);
+ smfir_name : "unknown", (long) data_len);
milter8_comm_error(milter);
return (milter->def_reply);
}
diff --git a/postfix/src/milter/test-milter.c b/postfix/src/milter/test-milter.c
index 65c79ede0..f11962a44 100644
--- a/postfix/src/milter/test-milter.c
+++ b/postfix/src/milter/test-milter.c
@@ -207,7 +207,7 @@ static sfsistat test_body(SMFICTX *ctx, unsigned char *data, size_t data_len)
if (verbose == 0)
printf("test_body %ld bytes\n", (long) data_len);
else
- printf("%.*s", data_len, data);
+ printf("%.*s", (int) data_len, data);
return (test_reply(ctx, test_body_reply));
}
diff --git a/postfix/src/smtp/Makefile.in b/postfix/src/smtp/Makefile.in
index 8b781b4a1..dad89aae9 100644
--- a/postfix/src/smtp/Makefile.in
+++ b/postfix/src/smtp/Makefile.in
@@ -111,6 +111,7 @@ levels.o: ../../include/match_list.h
levels.o: ../../include/match_ops.h
levels.o: ../../include/msg.h
levels.o: ../../include/msg_stats.h
+levels.o: ../../include/name_code.h
levels.o: ../../include/name_mask.h
levels.o: ../../include/recipient_list.h
levels.o: ../../include/resolve_clnt.h
@@ -182,6 +183,7 @@ smtp_addr.o: ../../include/msg.h
smtp_addr.o: ../../include/msg_stats.h
smtp_addr.o: ../../include/myaddrinfo.h
smtp_addr.o: ../../include/mymalloc.h
+smtp_addr.o: ../../include/name_code.h
smtp_addr.o: ../../include/name_mask.h
smtp_addr.o: ../../include/own_inet_addr.h
smtp_addr.o: ../../include/recipient_list.h
@@ -218,6 +220,7 @@ smtp_chat.o: ../../include/match_ops.h
smtp_chat.o: ../../include/msg.h
smtp_chat.o: ../../include/msg_stats.h
smtp_chat.o: ../../include/mymalloc.h
+smtp_chat.o: ../../include/name_code.h
smtp_chat.o: ../../include/name_mask.h
smtp_chat.o: ../../include/post_mail.h
smtp_chat.o: ../../include/recipient_list.h
@@ -256,6 +259,7 @@ smtp_connect.o: ../../include/msg.h
smtp_connect.o: ../../include/msg_stats.h
smtp_connect.o: ../../include/myaddrinfo.h
smtp_connect.o: ../../include/mymalloc.h
+smtp_connect.o: ../../include/name_code.h
smtp_connect.o: ../../include/name_mask.h
smtp_connect.o: ../../include/own_inet_addr.h
smtp_connect.o: ../../include/recipient_list.h
@@ -290,6 +294,7 @@ smtp_map11.o: ../../include/match_list.h
smtp_map11.o: ../../include/match_ops.h
smtp_map11.o: ../../include/msg.h
smtp_map11.o: ../../include/msg_stats.h
+smtp_map11.o: ../../include/name_code.h
smtp_map11.o: ../../include/name_mask.h
smtp_map11.o: ../../include/quote_822_local.h
smtp_map11.o: ../../include/quote_flags.h
@@ -376,6 +381,7 @@ smtp_rcpt.o: ../../include/match_ops.h
smtp_rcpt.o: ../../include/msg.h
smtp_rcpt.o: ../../include/msg_stats.h
smtp_rcpt.o: ../../include/mymalloc.h
+smtp_rcpt.o: ../../include/name_code.h
smtp_rcpt.o: ../../include/name_mask.h
smtp_rcpt.o: ../../include/recipient_list.h
smtp_rcpt.o: ../../include/resolve_clnt.h
@@ -405,6 +411,7 @@ smtp_reuse.o: ../../include/match_ops.h
smtp_reuse.o: ../../include/msg.h
smtp_reuse.o: ../../include/msg_stats.h
smtp_reuse.o: ../../include/mymalloc.h
+smtp_reuse.o: ../../include/name_code.h
smtp_reuse.o: ../../include/name_mask.h
smtp_reuse.o: ../../include/recipient_list.h
smtp_reuse.o: ../../include/resolve_clnt.h
@@ -435,6 +442,7 @@ smtp_sasl_glue.o: ../../include/match_ops.h
smtp_sasl_glue.o: ../../include/msg.h
smtp_sasl_glue.o: ../../include/msg_stats.h
smtp_sasl_glue.o: ../../include/mymalloc.h
+smtp_sasl_glue.o: ../../include/name_code.h
smtp_sasl_glue.o: ../../include/name_mask.h
smtp_sasl_glue.o: ../../include/recipient_list.h
smtp_sasl_glue.o: ../../include/resolve_clnt.h
@@ -466,6 +474,7 @@ smtp_sasl_proto.o: ../../include/match_ops.h
smtp_sasl_proto.o: ../../include/msg.h
smtp_sasl_proto.o: ../../include/msg_stats.h
smtp_sasl_proto.o: ../../include/mymalloc.h
+smtp_sasl_proto.o: ../../include/name_code.h
smtp_sasl_proto.o: ../../include/name_mask.h
smtp_sasl_proto.o: ../../include/recipient_list.h
smtp_sasl_proto.o: ../../include/resolve_clnt.h
@@ -529,6 +538,7 @@ smtp_state.o: ../../include/match_ops.h
smtp_state.o: ../../include/msg.h
smtp_state.o: ../../include/msg_stats.h
smtp_state.o: ../../include/mymalloc.h
+smtp_state.o: ../../include/name_code.h
smtp_state.o: ../../include/name_mask.h
smtp_state.o: ../../include/recipient_list.h
smtp_state.o: ../../include/resolve_clnt.h
@@ -559,6 +569,7 @@ smtp_trouble.o: ../../include/match_list.h
smtp_trouble.o: ../../include/match_ops.h
smtp_trouble.o: ../../include/msg.h
smtp_trouble.o: ../../include/msg_stats.h
+smtp_trouble.o: ../../include/name_code.h
smtp_trouble.o: ../../include/name_mask.h
smtp_trouble.o: ../../include/recipient_list.h
smtp_trouble.o: ../../include/resolve_clnt.h
@@ -588,6 +599,7 @@ smtp_unalias.o: ../../include/match_ops.h
smtp_unalias.o: ../../include/msg.h
smtp_unalias.o: ../../include/msg_stats.h
smtp_unalias.o: ../../include/myaddrinfo.h
+smtp_unalias.o: ../../include/name_code.h
smtp_unalias.o: ../../include/name_mask.h
smtp_unalias.o: ../../include/recipient_list.h
smtp_unalias.o: ../../include/resolve_clnt.h
diff --git a/postfix/src/smtp/smtp.h b/postfix/src/smtp/smtp.h
index 648737377..af397d711 100644
--- a/postfix/src/smtp/smtp.h
+++ b/postfix/src/smtp/smtp.h
@@ -330,6 +330,15 @@ extern int smtp_quit(SMTP_STATE *);
#define CACHE_THIS_SESSION_UNTIL(when) \
(session->expire_time = (when))
+ /*
+ * Encapsulate the following so that we don't expose details of of
+ * connection management and error handling to the SMTP protocol engine.
+ */
+#define RETRY_AS_PLAINTEXT do { \
+ session->tls_retry_plain = 1; \
+ state->misc_flags &= ~SMTP_MISC_FLAG_FINAL_SERVER; \
+ } while (0)
+
/*
* smtp_chat.c
*/
diff --git a/postfix/src/smtp/smtp_connect.c b/postfix/src/smtp/smtp_connect.c
index 41880cffb..b8fbde19f 100644
--- a/postfix/src/smtp/smtp_connect.c
+++ b/postfix/src/smtp/smtp_connect.c
@@ -856,7 +856,8 @@ static void smtp_connect_remote(SMTP_STATE *state, const char *nexthop,
/*
* When an opportunistic TLS handshake fails, try the
- * same address again, with TLS disabled.
+ * same address again, with TLS disabled. See also the
+ * RETRY_AS_PLAINTEXT macro.
*/
if ((retry_plain = session->tls_retry_plain) != 0) {
--addr_count;
diff --git a/postfix/src/smtp/smtp_proto.c b/postfix/src/smtp/smtp_proto.c
index e42825164..8256b8c9a 100644
--- a/postfix/src/smtp/smtp_proto.c
+++ b/postfix/src/smtp/smtp_proto.c
@@ -679,22 +679,22 @@ static int smtp_start_tls(SMTP_STATE *state)
*
* - Expiration code would need to selectively delete sessions from a list -
* Re-use code would need to decode many sessions and choose the best -
- * Store code would needs to choose between replace and append.
+ * Store code would need to choose between replace and append.
*
* Note: checking the compatibility of re-activated sessions against the
* cipher requirements of the session under construction requires us to
* store the cipher name in the session cache with the passivated session
- * object, the name is not available when the session is revived until
- * the handshake is complete, which is too late.
+ * object. But the name is not available when the session is revived
+ * until the handshake is complete, which is too late.
*
- * XXX: When cached ciphers are reloaded, their cipher is not available via
+ * XXX: When a cached session is reloaded, its cipher is not available via
* documented APIs until the handshake completes. We need to filter out
* sessions that use the wrong ciphers, but may not peek at the
* undocumented session->cipher_id and cipher->id structure members.
*
* Since cipherlists are typically shared by many domains, we include the
* cipherlist in the session cache lookup key. This avoids false
- * positives results from the session cache.
+ * positives from the TLS session cache.
*
* To support mutually incompatible protocol/cipher combinations, our
* session key must include both the protocol and the cipherlist.
@@ -738,10 +738,8 @@ static int smtp_start_tls(SMTP_STATE *state)
* Specifically, this session is not final, don't defer any
* recipients yet.
*/
- if (session->tls_level == TLS_LEV_MAY) {
- session->tls_retry_plain = 1;
- state->misc_flags &= ~SMTP_MISC_FLAG_FINAL_SERVER;
- }
+ if (session->tls_level == TLS_LEV_MAY)
+ RETRY_AS_PLAINTEXT;
return (smtp_site_fail(state, DSN_BY_LOCAL_MTA,
SMTP_RESP_FAKE(&fake, "4.7.5"),
"Cannot start TLS: handshake failure"));
diff --git a/postfix/src/smtpd/Makefile.in b/postfix/src/smtpd/Makefile.in
index 84d57fdb9..868965acb 100644
--- a/postfix/src/smtpd/Makefile.in
+++ b/postfix/src/smtpd/Makefile.in
@@ -211,6 +211,7 @@ smtpd_chat.o: ../../include/milter.h
smtpd_chat.o: ../../include/msg.h
smtpd_chat.o: ../../include/myaddrinfo.h
smtpd_chat.o: ../../include/mymalloc.h
+smtpd_chat.o: ../../include/name_code.h
smtpd_chat.o: ../../include/name_mask.h
smtpd_chat.o: ../../include/post_mail.h
smtpd_chat.o: ../../include/rec_type.h
@@ -263,6 +264,7 @@ smtpd_check.o: ../../include/msg_stats.h
smtpd_check.o: ../../include/myaddrinfo.h
smtpd_check.o: ../../include/mymalloc.h
smtpd_check.o: ../../include/namadr_list.h
+smtpd_check.o: ../../include/name_code.h
smtpd_check.o: ../../include/name_mask.h
smtpd_check.o: ../../include/own_inet_addr.h
smtpd_check.o: ../../include/rec_type.h
@@ -298,6 +300,7 @@ smtpd_milter.o: ../../include/mail_params.h
smtpd_milter.o: ../../include/mail_stream.h
smtpd_milter.o: ../../include/milter.h
smtpd_milter.o: ../../include/myaddrinfo.h
+smtpd_milter.o: ../../include/name_code.h
smtpd_milter.o: ../../include/name_mask.h
smtpd_milter.o: ../../include/sys_defs.h
smtpd_milter.o: ../../include/tls.h
@@ -318,6 +321,7 @@ smtpd_peer.o: ../../include/milter.h
smtpd_peer.o: ../../include/msg.h
smtpd_peer.o: ../../include/myaddrinfo.h
smtpd_peer.o: ../../include/mymalloc.h
+smtpd_peer.o: ../../include/name_code.h
smtpd_peer.o: ../../include/name_mask.h
smtpd_peer.o: ../../include/sock_addr.h
smtpd_peer.o: ../../include/stringops.h
@@ -363,6 +367,7 @@ smtpd_sasl_glue.o: ../../include/milter.h
smtpd_sasl_glue.o: ../../include/msg.h
smtpd_sasl_glue.o: ../../include/myaddrinfo.h
smtpd_sasl_glue.o: ../../include/mymalloc.h
+smtpd_sasl_glue.o: ../../include/name_code.h
smtpd_sasl_glue.o: ../../include/name_mask.h
smtpd_sasl_glue.o: ../../include/stringops.h
smtpd_sasl_glue.o: ../../include/sys_defs.h
@@ -387,6 +392,7 @@ smtpd_sasl_proto.o: ../../include/milter.h
smtpd_sasl_proto.o: ../../include/msg.h
smtpd_sasl_proto.o: ../../include/myaddrinfo.h
smtpd_sasl_proto.o: ../../include/mymalloc.h
+smtpd_sasl_proto.o: ../../include/name_code.h
smtpd_sasl_proto.o: ../../include/name_mask.h
smtpd_sasl_proto.o: ../../include/stringops.h
smtpd_sasl_proto.o: ../../include/sys_defs.h
@@ -413,6 +419,7 @@ smtpd_state.o: ../../include/milter.h
smtpd_state.o: ../../include/msg.h
smtpd_state.o: ../../include/myaddrinfo.h
smtpd_state.o: ../../include/mymalloc.h
+smtpd_state.o: ../../include/name_code.h
smtpd_state.o: ../../include/name_mask.h
smtpd_state.o: ../../include/sys_defs.h
smtpd_state.o: ../../include/tls.h
@@ -439,6 +446,7 @@ smtpd_xforward.o: ../../include/milter.h
smtpd_xforward.o: ../../include/msg.h
smtpd_xforward.o: ../../include/myaddrinfo.h
smtpd_xforward.o: ../../include/mymalloc.h
+smtpd_xforward.o: ../../include/name_code.h
smtpd_xforward.o: ../../include/name_mask.h
smtpd_xforward.o: ../../include/sys_defs.h
smtpd_xforward.o: ../../include/tls.h
diff --git a/postfix/src/tls/Makefile.in b/postfix/src/tls/Makefile.in
index 0a1695f60..0210029dd 100644
--- a/postfix/src/tls/Makefile.in
+++ b/postfix/src/tls/Makefile.in
@@ -89,6 +89,7 @@ depend: $(MAKES)
# do not edit below this line - it is generated by 'make depend'
tls_bio_ops.o: ../../include/iostuff.h
tls_bio_ops.o: ../../include/msg.h
+tls_bio_ops.o: ../../include/name_code.h
tls_bio_ops.o: ../../include/name_mask.h
tls_bio_ops.o: ../../include/sys_defs.h
tls_bio_ops.o: ../../include/vbuf.h
@@ -97,6 +98,7 @@ tls_bio_ops.o: ../../include/vstring.h
tls_bio_ops.o: tls.h
tls_bio_ops.o: tls_bio_ops.c
tls_certkey.o: ../../include/msg.h
+tls_certkey.o: ../../include/name_code.h
tls_certkey.o: ../../include/name_mask.h
tls_certkey.o: ../../include/sys_defs.h
tls_certkey.o: ../../include/vbuf.h
@@ -108,6 +110,7 @@ tls_client.o: ../../include/argv.h
tls_client.o: ../../include/mail_params.h
tls_client.o: ../../include/msg.h
tls_client.o: ../../include/mymalloc.h
+tls_client.o: ../../include/name_code.h
tls_client.o: ../../include/name_mask.h
tls_client.o: ../../include/stringops.h
tls_client.o: ../../include/sys_defs.h
@@ -118,6 +121,7 @@ tls_client.o: tls.h
tls_client.o: tls_client.c
tls_client.o: tls_mgr.h
tls_dh.o: ../../include/msg.h
+tls_dh.o: ../../include/name_code.h
tls_dh.o: ../../include/name_mask.h
tls_dh.o: ../../include/sys_defs.h
tls_dh.o: ../../include/vbuf.h
@@ -139,6 +143,7 @@ tls_mgr.o: tls_mgr.c
tls_mgr.o: tls_mgr.h
tls_misc.o: ../../include/msg.h
tls_misc.o: ../../include/mymalloc.h
+tls_misc.o: ../../include/name_code.h
tls_misc.o: ../../include/name_mask.h
tls_misc.o: ../../include/stringops.h
tls_misc.o: ../../include/sys_defs.h
@@ -175,6 +180,7 @@ tls_prng_file.o: ../../include/mymalloc.h
tls_prng_file.o: ../../include/sys_defs.h
tls_prng_file.o: tls_prng.h
tls_prng_file.o: tls_prng_file.c
+tls_rsa.o: ../../include/name_code.h
tls_rsa.o: ../../include/name_mask.h
tls_rsa.o: ../../include/sys_defs.h
tls_rsa.o: ../../include/vbuf.h
@@ -196,6 +202,7 @@ tls_scache.o: ../../include/vstring.h
tls_scache.o: tls_scache.c
tls_scache.o: tls_scache.h
tls_seed.o: ../../include/msg.h
+tls_seed.o: ../../include/name_code.h
tls_seed.o: ../../include/name_mask.h
tls_seed.o: ../../include/sys_defs.h
tls_seed.o: ../../include/vbuf.h
@@ -210,6 +217,7 @@ tls_server.o: ../../include/hex_code.h
tls_server.o: ../../include/mail_params.h
tls_server.o: ../../include/msg.h
tls_server.o: ../../include/mymalloc.h
+tls_server.o: ../../include/name_code.h
tls_server.o: ../../include/name_mask.h
tls_server.o: ../../include/stringops.h
tls_server.o: ../../include/sys_defs.h
@@ -221,6 +229,7 @@ tls_server.o: tls_mgr.h
tls_server.o: tls_server.c
tls_session.o: ../../include/msg.h
tls_session.o: ../../include/mymalloc.h
+tls_session.o: ../../include/name_code.h
tls_session.o: ../../include/name_mask.h
tls_session.o: ../../include/sys_defs.h
tls_session.o: ../../include/vbuf.h
@@ -230,6 +239,7 @@ tls_session.o: tls.h
tls_session.o: tls_session.c
tls_stream.o: ../../include/iostuff.h
tls_stream.o: ../../include/msg.h
+tls_stream.o: ../../include/name_code.h
tls_stream.o: ../../include/name_mask.h
tls_stream.o: ../../include/sys_defs.h
tls_stream.o: ../../include/vbuf.h
@@ -239,6 +249,7 @@ tls_stream.o: tls.h
tls_stream.o: tls_stream.c
tls_verify.o: ../../include/msg.h
tls_verify.o: ../../include/mymalloc.h
+tls_verify.o: ../../include/name_code.h
tls_verify.o: ../../include/name_mask.h
tls_verify.o: ../../include/sys_defs.h
tls_verify.o: ../../include/vbuf.h
diff --git a/postfix/src/tls/tls.h b/postfix/src/tls/tls.h
index d69e3479b..f33e067a2 100644
--- a/postfix/src/tls/tls.h
+++ b/postfix/src/tls/tls.h
@@ -119,7 +119,7 @@ extern NAME_CODE tls_cipher_level_table[];
name_code(tls_cipher_level_table, NAME_CODE_FLAG_NONE, (str))
#define TLS_END_EXCLUDE ((char *)0)
-extern char *tls_cipher_list(int,...);
+extern const char *tls_cipher_list(int,...);
/*
* tls_client.c
diff --git a/postfix/src/tls/tls_client.c b/postfix/src/tls/tls_client.c
index 4b9f9942e..e5c19c76b 100644
--- a/postfix/src/tls/tls_client.c
+++ b/postfix/src/tls/tls_client.c
@@ -6,11 +6,11 @@
/* SYNOPSIS
/* #include