From: Wietse Venema
+When this parameter value is changed you need to re-run "postfix +set-permissions" (with Postfix 2.0 and earlier: +"/etc/postfix/post-install set-permissions". +
+ @@ -5878,7 +5884,8 @@ into concurrency per recipient.Lookup tables, indexed by the remote SMTP server address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server.
+from a remote SMTP server. See smtp_discard_ehlo_keywords for +details. @@ -5888,8 +5895,10 @@ from a remote SMTP server.A case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server. Use the smtp_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively.
+from a remote SMTP server. Specify the pseudo keyword silent-discard +to prevent this action from being logged. Use the +smtp_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. @@ -7339,7 +7348,8 @@ is being rejected.Lookup tables, indexed by the remote SMTP client address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client.
+to a remote SMTP client. See smtpd_discard_ehlo_keywords for details. + @@ -7349,8 +7359,10 @@ to a remote SMTP client.A case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client. Use the smtpd_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively.
+to a remote SMTP client. Specify the pseudo keyword silent-discard +to prevent this action from being logged. Use the +smtpd_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. diff --git a/postfix/man/man5/postconf.5 b/postfix/man/man5/postconf.5 index 481ba0e1f..e5119477c 100644 --- a/postfix/man/man5/postconf.5 +++ b/postfix/man/man5/postconf.5 @@ -1875,6 +1875,10 @@ daemon processes. Specify the name of a user account that does not share a group with other accounts and that owns no other files or processes on the system. In particular, don't specify nobody or daemon. PLEASE USE A DEDICATED USER ID AND GROUP ID. +.PP +When this parameter value is changed you need to re-run "\fBpostfix +set-permissions\fR" (with Postfix 2.0 and earlier: +"\fB/etc/postfix/post-install set-permissions\fR". .SH mail_release_date (default: see "postconf -d" output) The Postfix release date, in "YYYYMMDD" format. .SH mail_spool_directory (default: see "postconf -d" output) @@ -3225,12 +3229,15 @@ into concurrency per recipient. Lookup tables, indexed by the remote SMTP server address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server. +from a remote SMTP server. See smtp_discard_ehlo_keywords for +details. .SH smtp_discard_ehlo_keywords (default: empty) A case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server. Use the smtp_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively. +from a remote SMTP server. Specify the pseudo keyword \fBsilent-discard\fR +to prevent this action from being logged. Use the +smtp_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. .SH smtp_enforce_tls (default: no) Enforcement mode: require that remote SMTP servers use TLS encryption, and never send mail in the clear. This also requires @@ -4143,12 +4150,14 @@ is being rejected. Lookup tables, indexed by the remote SMTP client address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client. +to a remote SMTP client. See smtpd_discard_ehlo_keywords for details. .SH smtpd_discard_ehlo_keywords (default: empty) A case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client. Use the smtpd_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively. +to a remote SMTP client. Specify the pseudo keyword \fBsilent-discard\fR +to prevent this action from being logged. Use the +smtpd_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. .SH smtpd_end_of_data_restrictions (default: empty) Optional access restrictions that the Postfix SMTP server applies in the context of the SMTP END-OF-DATA command. diff --git a/postfix/proto/postconf.proto b/postfix/proto/postconf.proto index f6caa1039..935e255b9 100644 --- a/postfix/proto/postconf.proto +++ b/postfix/proto/postconf.proto @@ -2141,6 +2141,12 @@ or processes on the system. In particular, don't specify nobody or daemon. PLEASE USE A DEDICATED USER ID AND GROUP ID. ++When this parameter value is changed you need to re-run "postfix +set-permissions" (with Postfix 2.0 and earlier: +"/etc/postfix/post-install set-permissions". +
+ %PARAM mail_spool_directory see "postconf -d" output@@ -7476,29 +7482,35 @@ and virtual_alias_maps.
A case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server. Use the smtp_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively.
+from a remote SMTP server. Specify the pseudo keyword silent-discard +to prevent this action from being logged. Use the +smtp_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. %PARAM smtpd_discard_ehlo_keywordsA case insensitive list of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client. Use the smtpd_discard_ehlo_keyword_address_maps -feature to discard EHLO keywords selectively.
+to a remote SMTP client. Specify the pseudo keyword silent-discard +to prevent this action from being logged. Use the +smtpd_discard_ehlo_keyword_address_maps feature to discard EHLO +keywords selectively. %PARAM smtp_discard_ehlo_keyword_address_mapsLookup tables, indexed by the remote SMTP server address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP client will ignore in the EHLO response -from a remote SMTP server.
+from a remote SMTP server. See smtp_discard_ehlo_keywords for +details. %PARAM smtpd_discard_ehlo_keyword_address_mapsLookup tables, indexed by the remote SMTP client address, with case insensitive lists of EHLO keywords (pipelining, starttls, auth, etc.) that the SMTP server will not send in the EHLO response -to a remote SMTP client.
+to a remote SMTP client. See smtpd_discard_ehlo_keywords for details. + %PARAM connection_cache_service scache diff --git a/postfix/src/global/ehlo_mask.c b/postfix/src/global/ehlo_mask.c index 6ae567346..85ade1293 100644 --- a/postfix/src/global/ehlo_mask.c +++ b/postfix/src/global/ehlo_mask.c @@ -16,6 +16,7 @@ /* #define EHLO_MASK_STARTTLS (1<<7) /* #define EHLO_MASK_XCLIENT (1<<8) /* #define EHLO_MASK_XFORWARD (1<<9) +/* #define EHLO_MASK_SILENT (1<<10) /* /* int ehlo_mask(keyword_list) /* const char *keyword_list; @@ -70,6 +71,7 @@ static NAME_MASK ehlo_mask_table[] = { "XCLIENT", EHLO_MASK_XCLIENT, "XFORWARD", EHLO_MASK_XFORWARD, "STARTTLS", EHLO_MASK_STARTTLS, + "SILENT-DISCARD", EHLO_MASK_SILENT, /* XXX In-band signaling */ 0, }; diff --git a/postfix/src/global/ehlo_mask.h b/postfix/src/global/ehlo_mask.h index 1ade500ad..9e8611f57 100644 --- a/postfix/src/global/ehlo_mask.h +++ b/postfix/src/global/ehlo_mask.h @@ -25,6 +25,7 @@ #define EHLO_MASK_XCLIENT (1<<8) /* start of second byte */ #define EHLO_MASK_XFORWARD (1<<9) +#define EHLO_MASK_SILENT (1<<10) extern int ehlo_mask(const char *); extern const char *str_ehlo_mask(int); diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index 7303514ee..2cd60ecea 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -20,7 +20,7 @@ * Patches change the patchlevel and the release date. Snapshots change the * release date only. */ -#define MAIL_RELEASE_DATE "20050214" +#define MAIL_RELEASE_DATE "20050216" #define MAIL_VERSION_NUMBER "2.2" #define VAR_MAIL_VERSION "mail_version" diff --git a/postfix/src/smtp/smtp_proto.c b/postfix/src/smtp/smtp_proto.c index b95e7aa27..befe86818 100644 --- a/postfix/src/smtp/smtp_proto.c +++ b/postfix/src/smtp/smtp_proto.c @@ -347,7 +347,7 @@ int smtp_helo(SMTP_STATE *state, NOCLOBBER int misc_flags) || (ehlo_words = maps_find(smtp_ehlo_dis_maps, state->session->addr, 0)) == 0) ehlo_words = var_smtp_ehlo_dis_words; discard_mask = ehlo_mask(ehlo_words); - if (discard_mask) + if (discard_mask && !(discard_mask & EHLO_MASK_SILENT)) msg_info("discarding EHLO keywords: %s", str_ehlo_mask(discard_mask)); /* diff --git a/postfix/src/smtpd/smtpd.c b/postfix/src/smtpd/smtpd.c index a220b5c34..fde269e42 100644 --- a/postfix/src/smtpd/smtpd.c +++ b/postfix/src/smtpd/smtpd.c @@ -1125,7 +1125,7 @@ static int ehlo_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) || (ehlo_words = maps_find(ehlo_discard_maps, state->addr, 0)) == 0) ehlo_words = var_smtpd_ehlo_dis_words; discard_mask = ehlo_mask(ehlo_words); - if (discard_mask) + if (discard_mask && !(discard_mask & EHLO_MASK_SILENT)) msg_info("discarding EHLO keywords: %s", str_ehlo_mask(discard_mask)); /*