]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.4.0-RC3 v2.4.0-RC3
authorWietse Venema <wietse@porcupine.org>
Tue, 6 Mar 2007 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 10 Feb 2018 20:02:54 +0000 (15:02 -0500)
19 files changed:
postfix/HISTORY
postfix/README_FILES/TLS_LEGACY_README
postfix/README_FILES/TLS_README
postfix/README_FILES/VIRTUAL_README
postfix/html/TLS_LEGACY_README.html
postfix/html/TLS_README.html
postfix/html/VIRTUAL_README.html
postfix/html/pipe.8.html
postfix/html/sendmail.1.html
postfix/man/man1/sendmail.1
postfix/man/man8/pipe.8
postfix/proto/TLS_LEGACY_README.html
postfix/proto/TLS_README.html
postfix/proto/VIRTUAL_README.html
postfix/src/global/mail_version.h
postfix/src/master/trigger_server.c
postfix/src/pipe/pipe.c
postfix/src/postdrop/postdrop.c
postfix/src/sendmail/sendmail.c

index 92ad76d49ec7a785d8b4e383b864b1cf37d4569d..b1fa92ed080aecac9347ca292cf4c07d654ead6f 100644 (file)
@@ -9851,7 +9851,7 @@ Apologies for any names omitted.
        Bugfix: the test for "no debugger_command" was wrong.
        Leandro Santi. File: global/debugger_command.c.
 
-20040117
+20041117
 
        Robustness: the master-child protocol now includes a process
        generation number besides the child process ID.  The process
@@ -13315,6 +13315,12 @@ Apologies for any names omitted.
        for a limited number of times before terminating the process.
        Files: master/single_server.c, master/multi_server.c.
 
+20070306
+
+       Bugfix (introduced with Postfix 2.3 Milter support): postdrop
+       reported "illegal seek" instead of "file too large".  File:
+       postdrop/postdrop.c.
+
 Wish list:
 
        Update message content length when adding/removing headers.
@@ -13329,6 +13335,7 @@ Wish list:
        am using now.
 
        Update MILTER_README with Martinec info.
+       http://www.ijs.si/software/amavisd/amavisd-new-docs.html#dkim
 
        Make postcat header/body aware so people can grep headers.
 
index c3c9ee1773f7ddab06d43f418a074aa55b258fbc..78d1285218a376c33ff86f370fd58f98cb4845a0 100644 (file)
@@ -558,7 +558,7 @@ Their DSA counterparts:
 
     /etc/postfix/main.cf:
         smtp_tls_dcert_file = /etc/postfix/client-dsa.pem
-        smtp_tls_dkey_file = $smtp_tls_cert_file
+        smtp_tls_dkey_file = $smtp_tls_dcert_file
 
 To verify a remote SMTP server certificate, the Postfix SMTP client needs to
 trust the certificates of the issuing certification authorities. These
index 33fd9bed0bd1e7a6ed311ea84e9bcfae5500adde..d8fbc02be95862f4b8e9c181b810464de9b0981a 100644 (file)
@@ -673,7 +673,7 @@ Their DSA counterparts:
 
     /etc/postfix/main.cf:
         smtp_tls_dcert_file = /etc/postfix/client-dsa.pem
-        smtp_tls_dkey_file = $smtp_tls_cert_file
+        smtp_tls_dkey_file = $smtp_tls_dcert_file
 
 To verify a remote SMTP server certificate, the Postfix SMTP client needs to
 trust the certificates of the issuing certification authorities. These
index 9ee405dbd99e366fb6a1b05aafafdb5803c82bd3..5b47482f778f6a95432a70def3db17846a4d79d9 100644 (file)
@@ -316,12 +316,14 @@ Notes:
     NEVER list a virtual MAILBOX domain name as a virtual ALIAS domain!
 
   * Lines 4, 7-13: The virtual_mailbox_maps parameter specifies the lookup
-    table with all valid recipient addresses. The lookup result is ignored by
-    Postfix. In the above example, info@example.com and sales@example.com are
-    listed as valid addresses, and mail for anything else is rejected with
-    "User unknown". If you intend to use LDAP, MySQL or PgSQL instead of local
-    files, be sure to review the "local files versus databases" section at the
-    top of this document!
+    table with all valid recipient addresses. The lookup result value is
+    ignored by Postfix. In the above example, info@example.com and
+    sales@example.com are listed as valid addresses; other mail for example.com
+    is rejected with "User unknown" by the Postfix SMTP server. It's left up to
+    the non-Postfix delivery agent to reject non-existent recipients from local
+    submission or from local alias expansion. If you intend to use LDAP, MySQL
+    or PgSQL instead of local files, be sure to review the "local files versus
+    databases" section at the top of this document!
 
   * Line 12: The commented out entry (text after #) shows how one would inform
     Postfix of the existence of a catch-all address. Again, the lookup result
index 9de6dff9054691601946703784203f3ea164abb3..d9862b10484c36c0dfe27c87b2c2aa5504227db9 100644 (file)
@@ -829,7 +829,7 @@ is correctly configured to supply its intermediate CA certificate). </p>
 <pre>
 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#smtp_tls_dcert_file">smtp_tls_dcert_file</a> = /etc/postfix/client-dsa.pem
-    <a href="postconf.5.html#smtp_tls_dkey_file">smtp_tls_dkey_file</a> = $<a href="postconf.5.html#smtp_tls_cert_file">smtp_tls_cert_file</a>
+    <a href="postconf.5.html#smtp_tls_dkey_file">smtp_tls_dkey_file</a> = $<a href="postconf.5.html#smtp_tls_dcert_file">smtp_tls_dcert_file</a>
 </pre>  
 </blockquote>
 
index 338d553e26100b84c06dc2246baac544464a61b2..aea6c7c42b4fc7f02ffcec97c138f0497269a5a5 100644 (file)
@@ -969,7 +969,7 @@ is correctly configured to supply its intermediate CA certificate). </p>
 <pre>
 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#smtp_tls_dcert_file">smtp_tls_dcert_file</a> = /etc/postfix/client-dsa.pem
-    <a href="postconf.5.html#smtp_tls_dkey_file">smtp_tls_dkey_file</a> = $<a href="postconf.5.html#smtp_tls_cert_file">smtp_tls_cert_file</a>
+    <a href="postconf.5.html#smtp_tls_dkey_file">smtp_tls_dkey_file</a> = $<a href="postconf.5.html#smtp_tls_dcert_file">smtp_tls_dcert_file</a>
 </pre>  
 </blockquote>
 
index 81bf4d90a44c1d0a39fab6726b46718f03a70539..6b0d3abc0e2aafea12ce57d7482a2a250811ba67 100644 (file)
@@ -129,7 +129,7 @@ being hosted on the local Postfix machine. </p>
 
 <blockquote>
 <pre>
-/etc/postfix/main.cf:
+/etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#mydestination">mydestination</a> = $<a href="postconf.5.html#myhostname">myhostname</a> localhost.$<a href="postconf.5.html#mydomain">mydomain</a> ... example.com
 </pre>
 </blockquote>
@@ -163,11 +163,11 @@ below shows how to use this mechanism for the example.com domain.
 
 <blockquote>
 <pre>
- 1 /etc/postfix/main.cf:
+ 1 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
  2     <a href="postconf.5.html#virtual_alias_domains">virtual_alias_domains</a> = example.com ...other <a href="VIRTUAL_README.html#canonical">hosted domains</a>...
  3     <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = hash:/etc/postfix/virtual
  4 
- 5 /etc/postfix/virtual:
+ 5 /etc/postfix/<a href="virtual.8.html">virtual</a>:
  6     postmaster@example.com postmaster
  7     info@example.com       joe
  8     sales@example.com      jane
@@ -210,7 +210,7 @@ for spam messages that were sent in the name of anything@example.com.
 
 <p>Execute the command "<b>postmap /etc/postfix/virtual</b>" after
 changing the virtual file, and execute the command "<b>postfix
-reload</b>" after changing the main.cf file. </p>
+reload</b>" after changing the <a href="postconf.5.html">main.cf</a> file. </p>
 
 <p> Note: virtual aliases can resolve to a local address or to a
 remote address, or both.  They don't have to resolve to UNIX system
@@ -255,7 +255,7 @@ section at the top of this document.</p>
 
 <blockquote>
 <pre>
- 1 /etc/postfix/main.cf:
+ 1 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
  2     <a href="postconf.5.html#virtual_mailbox_domains">virtual_mailbox_domains</a> = example.com ...more domains...
  3     <a href="postconf.5.html#virtual_mailbox_base">virtual_mailbox_base</a> = /var/mail/vhosts
  4     <a href="postconf.5.html#virtual_mailbox_maps">virtual_mailbox_maps</a> = hash:/etc/postfix/vmailbox
@@ -271,7 +271,7 @@ section at the top of this document.</p>
 14     # @example.com      example.com/catchall
 15     ...virtual mailboxes for more domains...
 16 
-17 /etc/postfix/virtual:
+17 /etc/postfix/<a href="virtual.8.html">virtual</a>:
 18     postmaster@example.com postmaster
 </pre>
 </blockquote>
@@ -329,7 +329,7 @@ mail for example.com's postmaster address to the local postmaster.
 You can use the same mechanism to redirect an address to a remote
 address.  </p>
 
-<li> <p> Line 18: This example assumes that in main.cf, $<a href="postconf.5.html#myorigin">myorigin</a>
+<li> <p> Line 18: This example assumes that in <a href="postconf.5.html">main.cf</a>, $<a href="postconf.5.html#myorigin">myorigin</a>
 is listed under the <a href="postconf.5.html#mydestination">mydestination</a> parameter setting.  If that is
 not the case, specify an explicit domain name on the right-hand
 side of the virtual alias table entries or else mail will go to
@@ -340,7 +340,7 @@ the wrong domain. </p>
 <p> Execute the command "<b>postmap /etc/postfix/virtual</b>" after
 changing the virtual file, execute "<b>postmap /etc/postfix/vmailbox</b>"
 after changing the vmailbox file, and execute the command "<b>postfix
-reload</b>" after changing the main.cf file. </p>
+reload</b>" after changing the <a href="postconf.5.html">main.cf</a> file. </p>
 
 <p> Note: mail delivery happens with the recipient's UID/GID
 privileges specified with <a href="postconf.5.html#virtual_uid_maps">virtual_uid_maps</a> and <a href="postconf.5.html#virtual_gid_maps">virtual_gid_maps</a>.
@@ -375,7 +375,7 @@ to a non-Postfix delivery agent: </p>
 
 <blockquote>
 <pre>
- 1 /etc/postfix/main.cf:
+ 1 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
  2     <a href="postconf.5.html#virtual_transport">virtual_transport</a> = ...see below...
  3     <a href="postconf.5.html#virtual_mailbox_domains">virtual_mailbox_domains</a> = example.com ...more domains...
  4     <a href="postconf.5.html#virtual_mailbox_maps">virtual_mailbox_maps</a> = hash:/etc/postfix/vmailbox
@@ -389,7 +389,7 @@ to a non-Postfix delivery agent: </p>
 12     # @example.com      whatever
 13     ...virtual mailboxes for more domains...
 14 
-15 /etc/postfix/virtual:
+15 /etc/postfix/<a href="virtual.8.html">virtual</a>:
 16     postmaster@example.com postmaster
 </pre>
 </blockquote>
@@ -400,7 +400,7 @@ to a non-Postfix delivery agent: </p>
 
 <li> <p> Line 2: With delivery to a non-Postfix mailbox store for
 <a href="VIRTUAL_README.html#canonical">hosted domains</a>, the <a href="postconf.5.html#virtual_transport">virtual_transport</a> parameter usually specifies
-the Postfix LMTP client, or the name of a master.cf entry that
+the Postfix LMTP client, or the name of a <a href="master.5.html">master.cf</a> entry that
 executes non-Postfix software via the pipe delivery agent.  Typical
 examples (use only one): </p>
 
@@ -414,7 +414,7 @@ examples (use only one): </p>
 
 <p> Postfix comes ready with support for LMTP.  And an example
 maildrop delivery method is already defined in the default Postfix
-master.cf file. See the <a href="MAILDROP_README.html">MAILDROP_README</a> document for more details.
+<a href="master.5.html">master.cf</a> file. See the <a href="MAILDROP_README.html">MAILDROP_README</a> document for more details.
 </p>
 
 <li> <p> Line 3: The <a href="postconf.5.html#virtual_mailbox_domains">virtual_mailbox_domains</a> setting tells Postfix
@@ -432,9 +432,13 @@ domain!  </p>
 
 <li> <p> Lines 4, 7-13: The <a href="postconf.5.html#virtual_mailbox_maps">virtual_mailbox_maps</a> parameter specifies
 the lookup table with all valid recipient addresses. The lookup
-result is ignored by Postfix.  In the above example, info@example.com
-and sales@example.com are listed as valid addresses, and mail for
-anything else is rejected with "User unknown". If you intend to
+result value is ignored by Postfix.  In the above example,
+info@example.com
+and sales@example.com are listed as valid addresses; other mail for
+example.com is rejected with "User unknown" by the Postfix SMTP
+server. It's left up to the non-Postfix delivery agent to reject
+non-existent recipients from local submission or from local alias
+expansion.  If you intend to
 use LDAP, MySQL or PgSQL instead of local files, be sure to review
 the <a href="#local_vs_database"> "local files versus databases"</a>
 section at the top of this document! </p>
@@ -456,7 +460,7 @@ redirect mail for example.com's postmaster address to the local
 postmaster. You can use the same mechanism to redirect any addresses
 to a local or remote address.  </p>
 
-<li> <p> Line 16: This example assumes that in main.cf, $<a href="postconf.5.html#myorigin">myorigin</a>
+<li> <p> Line 16: This example assumes that in <a href="postconf.5.html">main.cf</a>, $<a href="postconf.5.html#myorigin">myorigin</a>
 is listed under the <a href="postconf.5.html#mydestination">mydestination</a> parameter setting.  If that is
 not the case, specify an explicit domain name on the right-hand
 side of the virtual alias table entries or else mail will go to
@@ -467,7 +471,7 @@ the wrong domain. </p>
 <p> Execute the command "<b>postmap /etc/postfix/virtual</b>" after
 changing the virtual file, execute "<b>postmap /etc/postfix/vmailbox</b>"
 after changing the vmailbox file, and execute the command "<b>postfix
-reload</b>" after changing the main.cf file. </p>
+reload</b>" after changing the <a href="postconf.5.html">main.cf</a> file. </p>
 
 <h2><a name="forwarding">Mail forwarding domains</a></h2>
 
@@ -478,11 +482,11 @@ as a mail forwarding domain: </p>
 
 <blockquote>
 <pre>
- 1 /etc/postfix/main.cf:
+ 1 /etc/postfix/<a href="postconf.5.html">main.cf</a>:
  2     <a href="postconf.5.html#virtual_alias_domains">virtual_alias_domains</a> = example.com ...other <a href="VIRTUAL_README.html#canonical">hosted domains</a>...
  3     <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = hash:/etc/postfix/virtual
  4 
- 5 /etc/postfix/virtual:
+ 5 /etc/postfix/<a href="virtual.8.html">virtual</a>:
  6     postmaster@example.com postmaster
  7     joe@example.com        joe@somewhere
  8     jane@example.com       jane@somewhere-else
@@ -526,7 +530,7 @@ for spam messages that were sent in the name of anything@example.com.
 
 <p> Execute the command "<b>postmap /etc/postfix/virtual</b>" after
 changing the virtual file, and execute the command "<b>postfix
-reload</b>" after changing the main.cf file. </p>
+reload</b>" after changing the <a href="postconf.5.html">main.cf</a> file. </p>
 
 <p> More details about the virtual alias file are given in the
 <a href="virtual.5.html">virtual(5)</a> manual page, including multiple addresses on the right-hand
@@ -546,10 +550,10 @@ virtual addresses to the local delivery agent: </p>
 
 <blockquote>
 <pre>
-/etc/postfix/main.cf:
+/etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = hash:/etc/postfix/virtual
 
-/etc/postfix/virtual:
+/etc/postfix/<a href="virtual.8.html">virtual</a>:
     listname-request@example.com listname-request
     listname@example.com         listname
     owner-listname@example.com   owner-listname
@@ -561,7 +565,7 @@ virtual addresses to the local delivery agent: </p>
 </pre>
 </blockquote>
 
-<p> This example assumes that in main.cf, $<a href="postconf.5.html#myorigin">myorigin</a> is listed under
+<p> This example assumes that in <a href="postconf.5.html">main.cf</a>, $<a href="postconf.5.html#myorigin">myorigin</a> is listed under
 the <a href="postconf.5.html#mydestination">mydestination</a> parameter setting.  If that is not the case,
 specify an explicit domain name on the right-hand side of the
 virtual alias table entries or else mail will go to the wrong
@@ -594,10 +598,10 @@ table: </p>
 
 <blockquote>
 <pre>
-/etc/postfix/main.cf:
+/etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#virtual_alias_maps">virtual_alias_maps</a> = hash:/etc/postfix/virtual
 
-/etc/postfix/virtual:
+/etc/postfix/<a href="virtual.8.html">virtual</a>:
     user@domain.tld user@domain.tld, user@domain.tld@autoreply.<a href="postconf.5.html#mydomain">mydomain</a>.tld
 </pre>
 </blockquote>
@@ -613,13 +617,13 @@ reply back to the sender. </p>
 
 <blockquote>
 <pre>
-/etc/postfix/main.cf:
+/etc/postfix/<a href="postconf.5.html">main.cf</a>:
     <a href="postconf.5.html#transport_maps">transport_maps</a> = hash:/etc/postfix/transport
 
 /etc/postfix/transport:
     autoreply.<a href="postconf.5.html#mydomain">mydomain</a>.tld  autoreply:
 
-/etc/postfix/master.cf:
+/etc/postfix/<a href="master.5.html">master.cf</a>:
     # =============================================================
     # service type  private unpriv  chroot  wakeup  maxproc command
     #               (yes)   (yes)   (yes)   (never) (100)
@@ -633,7 +637,7 @@ reply back to the sender. </p>
 the user@domain.tld recipient address on the command line. </p>
 
 <p> For more information, see the <a href="pipe.8.html">pipe(8)</a> manual page, and the
-comments in the Postfix master.cf file. </p>
+comments in the Postfix <a href="master.5.html">master.cf</a> file. </p>
 
 </body>
 
index 26de9e7ed16b04b78dee259501255fd854aaccc5..e47a2f54fd79815293a98df48d79cb72bcf51f53 100644 (file)
@@ -139,11 +139,11 @@ PIPE(8)                                                                PIPE(8)
                      ware.
 
        <b>null_sender</b>=<i>replacement</i> (default: MAILER-DAEMON)
-              Replace the null sender address, which is typically
-              used for delivery status  notifications,  with  the
-              specified  text when expanding the <b>$sender</b> command-
-              line macro, and when generating a From_ or  Return-
-              Path: message header.
+              Replace the null sender address (typically used for
+              delivery status notifications) with  the  specified
+              text when expanding the <b>$sender</b> command-line macro,
+              and when generating a From_ or Return-Path: message
+              header.
 
               If  the null sender replacement text is a non-empty
               string then it  is  affected  by  the  <b>q</b>  flag  for
index 0390a1dc951ee45fe6f122428e1c56777a765183..52a9a86452e3756c1255e3212674a7499debe39b 100644 (file)
@@ -282,9 +282,9 @@ SENDMAIL(1)                                                        SENDMAIL(1)
 
 <b>SECURITY</b>
        By  design,  this  program  is not set-user (or group) id.
-       However, it must  handle  data  from  untrusted  users  or
-       untrusted  machines.   Thus, the usual precautions need to
-       be taken against malicious inputs.
+       However, it must  handle  data  from  untrusted,  possibly
+       remote,  users.   Thus,  the  usual precautions need to be
+       taken against malicious inputs.
 
 <b>DIAGNOSTICS</b>
        Problems are logged to  <b>syslogd</b>(8)  and  to  the  standard
index 0b88eca36c862719c385a589a304dc468f858132..04ba044f9ba76a04e49a7110fd51da1174e8466b 100644 (file)
@@ -230,7 +230,7 @@ Log mailer traffic. Use the \fBdebug_peer_list\fR and
 .ad
 .fi
 By design, this program is not set-user (or group) id. However,
-it must handle data from untrusted users or untrusted machines.
+it must handle data from untrusted, possibly remote, users.
 Thus, the usual precautions need to be taken against malicious
 inputs.
 .SH DIAGNOSTICS
index d2ccd3175f1279496f085519e37ff6e5a4f792a3..766b37447a78d4a1c72ad1caec4461f435ec7a07 100644 (file)
@@ -128,8 +128,8 @@ Prepend "\fB>\fR" to lines starting with "\fBFrom \fR". This is expected
 by, for example, \fBUUCP\fR software.
 .RE
 .IP "\fBnull_sender\fR=\fIreplacement\fR (default: MAILER-DAEMON)"
-Replace the null sender address, which is typically used
-for delivery status notifications, with the specified text
+Replace the null sender address (typically used for delivery
+status notifications) with the specified text
 when expanding the \fB$sender\fR command-line macro, and
 when generating a From_ or Return-Path: message header.
 
index 5a05669563ff31692178a6007e50bbb5f8640a45..a46f99c58d632ec52cd9dfdaf6ff42898d1ff9e8 100644 (file)
@@ -829,7 +829,7 @@ is correctly configured to supply its intermediate CA certificate). </p>
 <pre>
 /etc/postfix/main.cf:
     smtp_tls_dcert_file = /etc/postfix/client-dsa.pem
-    smtp_tls_dkey_file = $smtp_tls_cert_file
+    smtp_tls_dkey_file = $smtp_tls_dcert_file
 </pre>  
 </blockquote>
 
index 976082ac04aa59489dd9326fd264a6940da05dc2..289829f0a0b554157afda357ec32ede1f8bee901 100644 (file)
@@ -969,7 +969,7 @@ is correctly configured to supply its intermediate CA certificate). </p>
 <pre>
 /etc/postfix/main.cf:
     smtp_tls_dcert_file = /etc/postfix/client-dsa.pem
-    smtp_tls_dkey_file = $smtp_tls_cert_file
+    smtp_tls_dkey_file = $smtp_tls_dcert_file
 </pre>  
 </blockquote>
 
index eea8bafd3d1541ed28da1b51646dc23f7290b154..7139d09348eda477ea58c2b0e9c0679202842eb5 100644 (file)
@@ -432,9 +432,13 @@ domain!  </p>
 
 <li> <p> Lines 4, 7-13: The virtual_mailbox_maps parameter specifies
 the lookup table with all valid recipient addresses. The lookup
-result is ignored by Postfix.  In the above example, info@example.com
-and sales@example.com are listed as valid addresses, and mail for
-anything else is rejected with "User unknown". If you intend to
+result value is ignored by Postfix.  In the above example,
+info@example.com
+and sales@example.com are listed as valid addresses; other mail for
+example.com is rejected with "User unknown" by the Postfix SMTP
+server. It's left up to the non-Postfix delivery agent to reject
+non-existent recipients from local submission or from local alias
+expansion.  If you intend to
 use LDAP, MySQL or PgSQL instead of local files, be sure to review
 the <a href="#local_vs_database"> "local files versus databases"</a>
 section at the top of this document! </p>
index f62b930895a385c37269d41653af2c5a06795c47..667158819e13c2e10167d0f920ccb04da62ea5d0 100644 (file)
@@ -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      "20070301"
-#define MAIL_VERSION_NUMBER    "2.4.0-RC2"
+#define MAIL_RELEASE_DATE      "20070306"
+#define MAIL_VERSION_NUMBER    "2.4.0-RC3"
 
 #ifdef SNAPSHOT
 # define MAIL_VERSION_DATE     "-" MAIL_RELEASE_DATE
index 1e0846207a04bef5a16fffdf1d8d9b1ae72f0a80..5db0fb8ee6998f3f6c62c053f0ce0573b40f299f 100644 (file)
@@ -315,7 +315,7 @@ static void trigger_server_accept_local(int unused_event, char *context)
        msg_fatal("select unlock: %m");
     if (fd < 0) {
        if (errno != EAGAIN)
-           msg_fatal("accept connection: %m");
+           msg_error("accept connection: %m");
        if (time_left >= 0)
            event_request_timer(trigger_server_timeout, (char *) 0, time_left);
        return;
@@ -361,7 +361,7 @@ static void trigger_server_accept_pass(int unused_event, char *context)
        msg_fatal("select unlock: %m");
     if (fd < 0) {
        if (errno != EAGAIN)
-           msg_fatal("accept connection: %m");
+           msg_error("accept connection: %m");
        if (time_left >= 0)
            event_request_timer(trigger_server_timeout, (char *) 0, time_left);
        return;
index 839b93108fa4be687e9b77d8d336e89c4307faa4..b6ecb75e37321825278a55682ba4a0ecf7c4f31b 100644 (file)
 /*     by, for example, \fBUUCP\fR software.
 /* .RE
 /* .IP "\fBnull_sender\fR=\fIreplacement\fR (default: MAILER-DAEMON)"
-/*     Replace the null sender address, which is typically used
-/*     for delivery status notifications, with the specified text
+/*     Replace the null sender address (typically used for delivery
+/*     status notifications) with the specified text
 /*     when expanding the \fB$sender\fR command-line macro, and
 /*     when generating a From_ or Return-Path: message header.
 /*
index 3bd19c8a4be5b0629932b1c58c57f027d9f3281c..537cdb260fc8debc307d42f323347a9bf387dacd 100644 (file)
@@ -229,6 +229,7 @@ int     main(int argc, char **argv)
     const char *errstr;
     char   *junk;
     struct timeval start;
+    int     saved_errno;
 
     /*
      * Be consistent with file permissions.
@@ -427,9 +428,12 @@ int     main(int argc, char **argv)
            continue;
        }
        if (REC_PUT_BUF(dst->stream, rec_type, buf) < 0) {
-           while ((rec_type = rec_get(VSTREAM_IN, buf, var_line_limit)) > 0
-                  && rec_type != REC_TYPE_END)
+           /* rec_get() errors must not clobber errno. */
+           saved_errno = errno;
+           while (rec_get_raw(VSTREAM_IN, buf, var_line_limit,
+                              REC_FLAG_NONE) > 0)
                 /* void */ ;
+           errno = saved_errno;
            break;
        }
        if (rec_type == REC_TYPE_END)
@@ -441,8 +445,8 @@ int     main(int argc, char **argv)
      * Finish the file.
      */
     if ((status = mail_stream_finish(dst, (VSTRING *) 0)) != 0) {
-       postdrop_cleanup();
        msg_warn("uid=%ld: %m", (long) uid);
+       postdrop_cleanup();
     }
 
     /*
index 242896e2477ae14f53a468a29ca6ebc0cd5c9833..08cf0209c850250acbabb6e970240d9e7b0fc673 100644 (file)
 /* .ad
 /* .fi
 /*     By design, this program is not set-user (or group) id. However,
-/*     it must handle data from untrusted users or untrusted machines.
+/*     it must handle data from untrusted, possibly remote, users.
 /*     Thus, the usual precautions need to be taken against malicious
 /*     inputs.
 /* DIAGNOSTICS