]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.4-20070201
authorWietse Venema <wietse@porcupine.org>
Thu, 1 Feb 2007 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:32:54 +0000 (06:32 +0000)
15 files changed:
postfix/HISTORY
postfix/RELEASE_NOTES
postfix/html/oqmgr.8.html
postfix/html/postconf.5.html
postfix/html/qmgr.8.html
postfix/makedefs
postfix/man/man5/postconf.5
postfix/man/man8/oqmgr.8
postfix/man/man8/qmgr.8
postfix/proto/postconf.proto
postfix/src/global/mail_params.h
postfix/src/global/mail_version.h
postfix/src/oqmgr/qmgr.c
postfix/src/qmgr/qmgr.c
postfix/src/util/sys_defs.h

index 342974176e5ea49d8be2ab8015dbde261c15a8c9..9557aef4a4f5628d634171256a9259ee38326ee7 100644 (file)
@@ -13166,6 +13166,19 @@ Apologies for any names omitted.
        minor updates: global/dict_ldap.c, mantools/postlink,
        tlsmgs/tlsmgr.c, conf/master.cf. LaMont Jones.
 
+20070101
+
+       Portability: GNU Hurd support for multiple kernel environments.
+       LaMont Jones. Files: util/sys_defs.h, makedefs.
+
+       Cleanup: some default settings were adjusted to better fit
+       today's environment: queue_run_delay and minimal_backoff_time
+       were reduced from 1000s to 300s, so that deliveries are
+       retried earlier after the first failure; ipc_idle was reduced
+       from 100s to 5s, so that tlsmgr and scache clients will
+       more quickly release unused file handles. Files:
+       global/mail_params.h, proto/postconf.5.html
+
 Wish list:
 
        Update message content length when adding/removing headers.
@@ -13186,8 +13199,9 @@ Wish list:
        Make postmap header/body aware so people can test multi-line
        header checks.
 
-       Investigate if clients of single-instance servers such as
-       tlsmgr, verify, can close sockets earlier.
+       Eliminate Linux 1024 select() file handle bottleneck and
+       eliminate select()/poll() scaling problems by implementing
+       kqueue(2) and epoll(2) support.
 
        REDIRECT should override original recipient info, and
        probably override DSN as well.
index 8a7ad29d4c00bf75947f991927d37fb4ed7e6a9f..31d0925a843aa9f3e58d70a9bd90599be99f25be 100644 (file)
@@ -17,6 +17,19 @@ Incompatibility with Postfix 2.2 and earlier
 If you upgrade from Postfix 2.2 or earlier, read RELEASE_NOTES-2.3
 before proceeding.
 
+Incompatibility with Postfix snapshot 20070201
+==============================================
+
+Some default settings have been adjusted to better match contemporary
+requirements:
+
+- queue_run_delay and minimal_backoff_time were reduced from 1000s
+to 300s so that deliveries are retried earlier after the first
+failure.
+
+- ipc_idle was reduced from 100s to 5s, so that tlsmgr and scache
+clients will more quickly release unused file handles.
+
 Major changes with Postfix snapshot 20070121
 ============================================
 
index 7c8dd84842737834c53b6d0d42f1f5d106b3e5fb..a17925cd1cebcb01d401c312131a30b8b87e9334 100644 (file)
@@ -232,7 +232,7 @@ OQMGR(8)                                                              OQMGR(8)
               Idem, for delivery via the named message <i>transport</i>.
 
 <b>OTHER RESOURCE AND RATE CONTROLS</b>
-       <b><a href="postconf.5.html#minimal_backoff_time">minimal_backoff_time</a> (1000s)</b>
+       <b><a href="postconf.5.html#minimal_backoff_time">minimal_backoff_time</a> (version dependent)</b>
               The minimal time  between  attempts  to  deliver  a
               deferred message.
 
@@ -244,7 +244,7 @@ OQMGR(8)                                                              OQMGR(8)
               The maximal time a message is queued before  it  is
               sent back as undeliverable.
 
-       <b><a href="postconf.5.html#queue_run_delay">queue_run_delay</a> (1000s)</b>
+       <b><a href="postconf.5.html#queue_run_delay">queue_run_delay</a> (version dependent)</b>
               The  time between <a href="QSHAPE_README.html#deferred_queue">deferred queue</a> scans by the queue
               manager.
 
index e2dd877d88dc5e51db2ce3f2ad0bd9d707b89ab4..b186681616224804eda934ea93033e72c2d92b2b 100644 (file)
@@ -3032,7 +3032,7 @@ Do not change this unless you have a complete understanding of <a href="http://w
 </DD>
 
 <DT><b><a name="ipc_idle">ipc_idle</a>
-(default: 100s)</b></DT><DD>
+(default: version dependent)</b></DT><DD>
 
 <p>
 The time after which a client closes an idle internal communication
@@ -3041,6 +3041,8 @@ after they become idle. This is used, for example, by the address
 resolving and rewriting clients.
 </p>
 
+<p> With Postfix 2.4 the default value was reduced from 100s to 5s. </p>
+
 <p>
 Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks).
 The default time unit is s (seconds).
@@ -5250,7 +5252,7 @@ This feature is available in Postfix 2.0 and later.
 </DD>
 
 <DT><b><a name="minimal_backoff_time">minimal_backoff_time</a>
-(default: 1000s)</b></DT><DD>
+(default: version dependent)</b></DT><DD>
 
 <p>
 The minimal time between attempts to deliver a deferred message.
@@ -5258,6 +5260,9 @@ This parameter also limits the time an unreachable destination is
 kept in the short-term, in-memory, destination status cache.
 </p>
 
+<p> With Postfix 2.4 the default value was reduced from 1000s to
+300s.  </p>
+
 <p> This parameter should be set greater than or equal to
 $<a href="postconf.5.html#queue_run_delay">queue_run_delay</a>. See also $<a href="postconf.5.html#maximal_backoff_time">maximal_backoff_time</a>.  </p>
 
@@ -6050,12 +6055,16 @@ zero means there is no minimum required amount of free space.
 </DD>
 
 <DT><b><a name="queue_run_delay">queue_run_delay</a>
-(default: 1000s)</b></DT><DD>
+(default: version dependent)</b></DT><DD>
 
 <p>
 The time between <a href="QSHAPE_README.html#deferred_queue">deferred queue</a> scans by the queue manager.
 </p>
 
+<p>
+With Postfix 2.4 the default value was reduced from 1000s to 300s.
+</p>
+
 <p> This parameter should be set less than or equal to
 $<a href="postconf.5.html#minimal_backoff_time">minimal_backoff_time</a>. See also $<a href="postconf.5.html#maximal_backoff_time">maximal_backoff_time</a>.  </p>
 
index e3c75a45dbb7bf284c238a3660d8bdca56319f89..6679ec2ccefddfffd65916ea0d158846ae9f72c6 100644 (file)
@@ -305,7 +305,7 @@ QMGR(8)                                                                QMGR(8)
               Idem, for delivery via the named message <i>transport</i>.
 
 <b>OTHER RESOURCE AND RATE CONTROLS</b>
-       <b><a href="postconf.5.html#minimal_backoff_time">minimal_backoff_time</a> (1000s)</b>
+       <b><a href="postconf.5.html#minimal_backoff_time">minimal_backoff_time</a> (version dependent)</b>
               The minimal time  between  attempts  to  deliver  a
               deferred message.
 
@@ -317,7 +317,7 @@ QMGR(8)                                                                QMGR(8)
               The maximal time a message is queued before  it  is
               sent back as undeliverable.
 
-       <b><a href="postconf.5.html#queue_run_delay">queue_run_delay</a> (1000s)</b>
+       <b><a href="postconf.5.html#queue_run_delay">queue_run_delay</a> (version dependent)</b>
               The  time between <a href="QSHAPE_README.html#deferred_queue">deferred queue</a> scans by the queue
               manager.
 
index e4ed531a263f6e61a5f1d9a83ed9e749326222f1..31b1c9eade21d5783e71b95ddd7b55edc9b30b75 100644 (file)
@@ -266,6 +266,42 @@ case "$SYSTEM.$RELEASE" in
                2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";;
                esac
                ;;
+     GNU.0.*)
+               SYSTYPE=GNU0
+               # Postfix no longer needs DB 1.85 compatibility
+               if [ -f /usr/include/db.h ]
+               then
+                   : we are all set
+               elif [ -f /usr/include/db/db.h ]
+               then
+                   CCARGS="$CCARGS -I/usr/include/db"
+               else
+                   # No, we're not going to try db1 db2 db3 etc.
+                   # On a properly installed system, Postfix builds
+                   # by including <db.h> and by linking with -ldb
+                   echo "No <db.h> include file found." 1>&2
+                   echo "Install the appropriate db*-devel package first." 1>&2
+                   echo "See the RELEASE_NOTES file for more information." 1>&2
+                   exit 1
+               fi
+               SYSLIBS="-ldb"
+               for name in nsl resolv
+               do
+                   for lib in /usr/lib64 /lib64 /usr/lib /lib
+                   do
+                       test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
+                           SYSLIBS="$SYSLIBS -l$name"
+                           break
+                       }
+                   done
+               done
+               case "`uname -s`" in
+               GNU)
+                       # currently no IPv6 support on Hurd
+                       CCARGS="$CCARGS -DNO_IPV6"
+                       ;;
+               esac
+               ;;
      IRIX*.5.*)        SYSTYPE=IRIX5
                # Use the native compiler by default
                : ${CC=cc} ${DEBUG="-g3"}
index 197513cdd940540eb3d9d793b093f322be586cec..3522cd1ef4fad342d5ce5da80cbd92c3051e3545 100644 (file)
@@ -1644,12 +1644,14 @@ HELO or EHLO command parameter is rejected by the reject_invalid_helo_hostname
 restriction.
 .PP
 Do not change this unless you have a complete understanding of RFC 821.
-.SH ipc_idle (default: 100s)
+.SH ipc_idle (default: version dependent)
 The time after which a client closes an idle internal communication
 channel.  The purpose is to allow servers to terminate voluntarily
 after they become idle. This is used, for example, by the address
 resolving and rewriting clients.
 .PP
+With Postfix 2.4 the default value was reduced from 100s to 5s.
+.PP
 Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks).
 The default time unit is s (seconds).
 .SH ipc_timeout (default: 3600s)
@@ -2846,11 +2848,14 @@ The maximal recursion level that the MIME processor will handle.
 Postfix refuses mail that is nested deeper than the specified limit.
 .PP
 This feature is available in Postfix 2.0 and later.
-.SH minimal_backoff_time (default: 1000s)
+.SH minimal_backoff_time (default: version dependent)
 The minimal time between attempts to deliver a deferred message.
 This parameter also limits the time an unreachable destination is
 kept in the short-term, in-memory, destination status cache.
 .PP
+With Postfix 2.4 the default value was reduced from 1000s to
+300s.
+.PP
 This parameter should be set greater than or equal to
 $queue_run_delay. See also $maximal_backoff_time.
 .PP
@@ -3299,9 +3304,11 @@ value that is at least 1.5*$message_size_limit.
 .PP
 With Postfix versions 2.0 and earlier, a queue_minfree value of
 zero means there is no minimum required amount of free space.
-.SH queue_run_delay (default: 1000s)
+.SH queue_run_delay (default: version dependent)
 The time between deferred queue scans by the queue manager.
 .PP
+With Postfix 2.4 the default value was reduced from 1000s to 300s.
+.PP
 This parameter should be set less than or equal to
 $minimal_backoff_time. See also $maximal_backoff_time.
 .PP
index bd2ceafa9fbb57d705546e647b9d5219e442aa38..8130f93dd4763068760a15ea6f2d3fc4d529a860 100644 (file)
@@ -226,14 +226,14 @@ Idem, for delivery via the named message \fItransport\fR.
 .nf
 .ad
 .fi
-.IP "\fBminimal_backoff_time (1000s)\fR"
+.IP "\fBminimal_backoff_time (version dependent)\fR"
 The minimal time between attempts to deliver a deferred message.
 .IP "\fBmaximal_backoff_time (4000s)\fR"
 The maximal time between attempts to deliver a deferred message.
 .IP "\fBmaximal_queue_lifetime (5d)\fR"
 The maximal time a message is queued before it is sent back as
 undeliverable.
-.IP "\fBqueue_run_delay (1000s)\fR"
+.IP "\fBqueue_run_delay (version dependent)\fR"
 The time between deferred queue scans by the queue manager.
 .IP "\fBtransport_retry_time (60s)\fR"
 The time between attempts by the Postfix queue manager to contact
index 9ad381d9b8bd81262b6fe302f23ff75365f5f7bd..ca129d64da4008b3b60eaf564c37e64d7a928191 100644 (file)
@@ -274,14 +274,14 @@ Idem, for delivery via the named message \fItransport\fR.
 .nf
 .ad
 .fi
-.IP "\fBminimal_backoff_time (1000s)\fR"
+.IP "\fBminimal_backoff_time (version dependent)\fR"
 The minimal time between attempts to deliver a deferred message.
 .IP "\fBmaximal_backoff_time (4000s)\fR"
 The maximal time between attempts to deliver a deferred message.
 .IP "\fBmaximal_queue_lifetime (5d)\fR"
 The maximal time a message is queued before it is sent back as
 undeliverable.
-.IP "\fBqueue_run_delay (1000s)\fR"
+.IP "\fBqueue_run_delay (version dependent)\fR"
 The time between deferred queue scans by the queue manager.
 .IP "\fBtransport_retry_time (60s)\fR"
 The time between attempts by the Postfix queue manager to contact
index 0df64f8f31c59c37cfeb3f3c5384e5877d77976e..33c9ac46f65d0022b52d5cde2ea8a9f3c76e88fd 100644 (file)
@@ -1819,7 +1819,7 @@ restriction.
 Do not change this unless you have a complete understanding of RFC 821.
 </p>
 
-%PARAM ipc_idle 100s
+%PARAM ipc_idle version dependent
 
 <p>
 The time after which a client closes an idle internal communication
@@ -1828,6 +1828,8 @@ after they become idle. This is used, for example, by the address
 resolving and rewriting clients.
 </p>
 
+<p> With Postfix 2.4 the default value was reduced from 100s to 5s. </p>
+
 <p>
 Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks).
 The default time unit is s (seconds).
@@ -2618,7 +2620,7 @@ Specify 0 when mail delivery should be tried only once.
 The maximal size in bytes of a message, including envelope information.
 </p>
 
-%PARAM minimal_backoff_time 1000s
+%PARAM minimal_backoff_time version dependent
 
 <p>
 The minimal time between attempts to deliver a deferred message.
@@ -2626,6 +2628,9 @@ This parameter also limits the time an unreachable destination is
 kept in the short-term, in-memory, destination status cache.
 </p>
 
+<p> With Postfix 2.4 the default value was reduced from 1000s to
+300s.  </p>
+
 <p> This parameter should be set greater than or equal to
 $queue_run_delay. See also $maximal_backoff_time.  </p>
 
@@ -3069,12 +3074,16 @@ With Postfix versions 2.0 and earlier, a queue_minfree value of
 zero means there is no minimum required amount of free space.
 </p>
 
-%PARAM queue_run_delay 1000s
+%PARAM queue_run_delay version dependent
 
 <p>
 The time between deferred queue scans by the queue manager.
 </p>
 
+<p>
+With Postfix 2.4 the default value was reduced from 1000s to 300s.
+</p>
+
 <p> This parameter should be set less than or equal to
 $minimal_backoff_time. See also $maximal_backoff_time.  </p>
 
index 34c2ed9517dbba40a14410c1fdd1d4cba2c0778b..75cd22c99ffc64ff8f2ea11e62f6fd8dbfd850af 100644 (file)
@@ -632,10 +632,10 @@ extern char *var_relocated_maps;
   * queue before it is sent back.
   */
 #define VAR_QUEUE_RUN_DELAY    "queue_run_delay"
-#define DEF_QUEUE_RUN_DELAY     "1000s"
+#define DEF_QUEUE_RUN_DELAY     "300s"
 
 #define VAR_MIN_BACKOFF_TIME   "minimal_backoff_time"
-#define DEF_MIN_BACKOFF_TIME    "1000s"
+#define DEF_MIN_BACKOFF_TIME    DEF_QUEUE_RUN_DELAY
 extern int var_min_backoff_time;
 
 #define VAR_MAX_BACKOFF_TIME   "maximal_backoff_time"
@@ -813,7 +813,7 @@ extern int var_event_drain;
   * IPC connection before closing it because it is idle for too much time.
   */
 #define VAR_IPC_IDLE           "ipc_idle"
-#define DEF_IPC_IDLE           "100s"
+#define DEF_IPC_IDLE           "5s"
 extern int var_ipc_idle_limit;
 
  /*
index 99c1fcd159820c652b32dbcc6498f68b323406b8..6cfd84f5e0e8d8ea8c219851b9394a39b82cddae 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      "20070131"
+#define MAIL_RELEASE_DATE      "20070201"
 #define MAIL_VERSION_NUMBER    "2.4"
 
 #ifdef SNAPSHOT
index a61ad4064052d88625a9c18eb80ff22d2ae3eeed..84baa7cac24812e5f86bc5088cc66ef0f6cd6451 100644 (file)
 /* OTHER RESOURCE AND RATE CONTROLS
 /* .ad
 /* .fi
-/* .IP "\fBminimal_backoff_time (1000s)\fR"
+/* .IP "\fBminimal_backoff_time (version dependent)\fR"
 /*     The minimal time between attempts to deliver a deferred message.
 /* .IP "\fBmaximal_backoff_time (4000s)\fR"
 /*     The maximal time between attempts to deliver a deferred message.
 /* .IP "\fBmaximal_queue_lifetime (5d)\fR"
 /*     The maximal time a message is queued before it is sent back as
 /*     undeliverable.
-/* .IP "\fBqueue_run_delay (1000s)\fR"
+/* .IP "\fBqueue_run_delay (version dependent)\fR"
 /*     The time between deferred queue scans by the queue manager.
 /* .IP "\fBtransport_retry_time (60s)\fR"
 /*     The time between attempts by the Postfix queue manager to contact
index 8a2349784ea31aa5a94fed6ba73320a7527e2acb..4ab22b02d8f1172287150e2bff1b843d0d37a6c0 100644 (file)
 /* OTHER RESOURCE AND RATE CONTROLS
 /* .ad
 /* .fi
-/* .IP "\fBminimal_backoff_time (1000s)\fR"
+/* .IP "\fBminimal_backoff_time (version dependent)\fR"
 /*     The minimal time between attempts to deliver a deferred message.
 /* .IP "\fBmaximal_backoff_time (4000s)\fR"
 /*     The maximal time between attempts to deliver a deferred message.
 /* .IP "\fBmaximal_queue_lifetime (5d)\fR"
 /*     The maximal time a message is queued before it is sent back as
 /*     undeliverable.
-/* .IP "\fBqueue_run_delay (1000s)\fR"
+/* .IP "\fBqueue_run_delay (version dependent)\fR"
 /*     The time between deferred queue scans by the queue manager.
 /* .IP "\fBtransport_retry_time (60s)\fR"
 /*     The time between attempts by the Postfix queue manager to contact
index c8ca6267277ed102bc702ba5b779b537ce6404da..63e9e3c904679255ecb3cd9104a1604488f990b8 100644 (file)
@@ -736,6 +736,69 @@ extern int initgroups(const char *, int);
 #define NATIVE_DAEMON_DIR "/usr/libexec/postfix"
 #define CANT_USE_SEND_RECV_MSG
 #define DEF_SMTP_CACHE_DEMAND  0
+#endif
+
+ /*
+  * GNU.
+  */
+#ifdef GNU0
+#define SUPPORTED
+#include <sys/types.h>
+#include <features.h>
+#define USE_PATHS_H
+#define HAS_FCNTL_LOCK
+#define INTERNAL_LOCK  MYFLOCK_STYLE_FCNTL
+#define DEF_MAILBOX_LOCK "fcntl, dotlock"      /* RedHat >= 4.x */
+#define HAS_FSYNC
+#define HAS_DB
+#define DEF_DB_TYPE    "hash"
+#define ALIAS_DB_MAP   "hash:/etc/aliases"
+#define HAS_NIS
+#define GETTIMEOFDAY(t)        gettimeofday(t,(struct timezone *) 0)
+#define ROOT_PATH      "/bin:/usr/bin:/sbin:/usr/sbin"
+#define FIONREAD_IN_TERMIOS_H
+#define USE_STATFS
+#define STATFS_IN_SYS_VFS_H
+#define UNIX_DOMAIN_CONNECT_BLOCKS_FOR_ACCEPT
+#define PREPEND_PLUS_TO_OPTSTRING
+#define HAS_POSIX_REGEXP
+#define HAS_DLOPEN
+#define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
+#define NATIVE_MAILQ_PATH "/usr/bin/mailq"
+#define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases"
+#define NATIVE_COMMAND_DIR "/usr/sbin"
+#ifdef DEBIAN
+#define NATIVE_DAEMON_DIR      "/usr/lib/postfix"
+#ifndef DEF_MANPAGE_DIR
+#define DEF_MANPAGE_DIR                "/usr/share/man"
+#endif
+#ifndef DEF_SAMPLE_DIR
+#define DEF_SAMPLE_DIR         "/usr/share/doc/postfix/examples"
+#endif
+#ifndef DEF_README_DIR
+#define DEF_README_DIR         "/usr/share/doc/postfix"
+#endif
+#else
+#define NATIVE_DAEMON_DIR "/usr/libexec/postfix"
+#endif
+#define SOCKADDR_SIZE  socklen_t
+#define SOCKOPT_SIZE   socklen_t
+#ifdef __FreeBSD_kernel__
+# define HAS_DUPLEX_PIPE
+# define HAS_ISSETUGID
+#endif
+#ifndef NO_IPV6
+# define HAS_IPV6
+# ifdef __FreeBSD_kernel__
+#  define HAVE_GETIFADDRS
+# else
+#  define HAS_PROCNET_IFINET6
+#  define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6"
+# endif
+#endif
+#define CANT_USE_SEND_RECV_MSG
+#define DEF_SMTP_CACHE_DEMAND  0
+#define HAS_DEV_URANDOM
 #endif
 
  /*