]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.2-20050216
authorWietse Venema <wietse@porcupine.org>
Wed, 16 Feb 2005 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:30:45 +0000 (06:30 +0000)
postfix/HISTORY
postfix/conf/post-install
postfix/html/postconf.5.html
postfix/man/man5/postconf.5
postfix/proto/postconf.proto
postfix/src/global/ehlo_mask.c
postfix/src/global/ehlo_mask.h
postfix/src/global/mail_version.h
postfix/src/smtp/smtp_proto.c
postfix/src/smtpd/smtpd.c

index a17d540cbe19cf5ac2f8d7c71a3c14b43a508cd4..039cde252e04196ca7834fe4625e49c471210baa 100644 (file)
@@ -10373,6 +10373,20 @@ Apologies for any names omitted.
        code.  Files: cleanup/cleanup_rewrite.c, cleanup/cleanup_map11.c,
        cleanup/cleanup_masquerade.c, cleanup/cleanup_message.c..
 
+20050215
+
+       Bugfix: don't chmod queue files while running "postfix
+       set-permissions". This avoids mail inadvertantly being
+       labeled as "corrupt" when a live Postfix system is upgraded.
+       Found by Victor Duchovni.  File: conf/post-install.
+
+20050216
+
+       Feature: in smtpd?_discard_ehlo_keyword(s|_address_maps)
+       specify the pseudo keyword "silent-discard" in order to
+       avoid logging that some EHLO keyword is being suppressed.
+       File: global/ehlo_mask.[hc].
+
 Open problems:
 
        Med: disable header address rewriting after XCLIENT?
index 8f7d1f78736b59368cef19b9547c23e4e9fe7ce0..8f5062dbe77e5bec1b7269c155403227c66851d3 100644 (file)
@@ -473,7 +473,12 @@ test -n "$create" && {
        test -n "$set_permission" && {
            chown $recursive $owner $path || exit 1
            test -z "$group" || chgrp $recursive $group $path || exit 1
-           chmod $recursive $mode $path || exit 1
+           if [ "$type" = "d" -a -n "$recursive" ]
+           then
+               find $path -type d -exec chmod $mode "{}" ";"
+           else
+               chmod $mode $path
+           fi || exit 1
        }
     done
     IFS="$BACKUP_IFS"
index d5c18be3df4f66e74620367618be83b34134361a..e8e300ea7b7c6f0d76bf1e7f4a24760295ed3247 100644 (file)
@@ -3504,6 +3504,12 @@ or processes on the system.  In particular, don't specify nobody
 or daemon.  PLEASE USE A DEDICATED USER ID AND GROUP ID.
 </p>
 
+<p>
+When this parameter value is changed you need to re-run "<b>postfix
+set-permissions</b>" (with Postfix 2.0 and earlier:
+"<b>/etc/postfix/post-install set-permissions</b>".
+</p>
+
 
 </DD>
 
@@ -5878,7 +5884,8 @@ into concurrency per recipient.  </p>
 <p> 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. </p>
+from a remote SMTP server. See <a href="postconf.5.html#smtp_discard_ehlo_keywords">smtp_discard_ehlo_keywords</a> for
+details. </p>
 
 
 </DD>
@@ -5888,8 +5895,10 @@ from a remote SMTP server. </p>
 
 <p> 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 <a href="postconf.5.html#smtp_discard_ehlo_keyword_address_maps">smtp_discard_ehlo_keyword_address_maps</a>
-feature to discard EHLO keywords selectively. </p>
+from a remote SMTP server. Specify the pseudo keyword <b>silent-discard</b>
+to prevent this action from being logged. Use the
+<a href="postconf.5.html#smtp_discard_ehlo_keyword_address_maps">smtp_discard_ehlo_keyword_address_maps</a> feature to discard EHLO
+keywords selectively. </p>
 
 
 </DD>
@@ -7339,7 +7348,8 @@ is being rejected.
 <p> 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. </p>
+to a remote SMTP client. See <a href="postconf.5.html#smtpd_discard_ehlo_keywords">smtpd_discard_ehlo_keywords</a> for details.
+</p>
 
 
 </DD>
@@ -7349,8 +7359,10 @@ to a remote SMTP client. </p>
 
 <p> 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 <a href="postconf.5.html#smtpd_discard_ehlo_keyword_address_maps">smtpd_discard_ehlo_keyword_address_maps</a>
-feature to discard EHLO keywords selectively.  </p>
+to a remote SMTP client. Specify the pseudo keyword <b>silent-discard</b>
+to prevent this action from being logged. Use the
+<a href="postconf.5.html#smtpd_discard_ehlo_keyword_address_maps">smtpd_discard_ehlo_keyword_address_maps</a> feature to discard EHLO
+keywords selectively.  </p>
 
 
 </DD>
index 481ba0e1ff59fe2e06527fd13ae26357b048ecb8..e5119477ce8f5d649a39872836ce55fb6b862aee 100644 (file)
@@ -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.
index f6caa103948146d92c856114ba0ddb2dcd10992d..935e255b93ef061075598d2921c12caf49765c32 100644 (file)
@@ -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.
 </p>
 
+<p>
+When this parameter value is changed you need to re-run "<b>postfix
+set-permissions</b>" (with Postfix 2.0 and earlier:
+"<b>/etc/postfix/post-install set-permissions</b>".
+</p>
+
 %PARAM mail_spool_directory see "postconf -d" output
 
 <p>
@@ -7476,29 +7482,35 @@ and virtual_alias_maps. </p>
 
 <p> 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. </p>
+from a remote SMTP server. Specify the pseudo keyword <b>silent-discard</b>
+to prevent this action from being logged. Use the
+smtp_discard_ehlo_keyword_address_maps feature to discard EHLO
+keywords selectively. </p>
 
 %PARAM smtpd_discard_ehlo_keywords
 
 <p> 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.  </p>
+to a remote SMTP client. Specify the pseudo keyword <b>silent-discard</b>
+to prevent this action from being logged. Use the
+smtpd_discard_ehlo_keyword_address_maps feature to discard EHLO
+keywords selectively.  </p>
 
 %PARAM smtp_discard_ehlo_keyword_address_maps
 
 <p> 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. </p>
+from a remote SMTP server. See smtp_discard_ehlo_keywords for
+details. </p>
 
 %PARAM smtpd_discard_ehlo_keyword_address_maps
 
 <p> 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. </p>
+to a remote SMTP client. See smtpd_discard_ehlo_keywords for details.
+</p>
 
 %PARAM connection_cache_service scache
 
index 6ae567346959d06e507d9c8a3754f8c42b3ccf7e..85ade12931c71152ffea6347b1a41eb46f17c12a 100644 (file)
@@ -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,
 };
 
index 1ade500ad47c8c55e4540877c5810d8492a8f5e7..9e8611f57be360479f8735e87eaa567bcb1cc1bc 100644 (file)
@@ -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);
index 7303514eef99721448d49724f6e60cf866beb6c2..2cd60eceaa10b297eee6474492d283f48d6a2ece 100644 (file)
@@ -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"
index b95e7aa275b65df3bb2b134b91d441c8d3d612f7..befe868181f81aabbc38df74ec552bebcb5d0294 100644 (file)
@@ -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));
 
     /*
index a220b5c342057dda4fc13fd74cc3710183f2a38b..fde269e42e75480ca5cecee4d39d12ddb51948cf 100644 (file)
@@ -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));
 
     /*