From 5a332a74fd1ab5ca69ef6145fb1eb3cb44b3b684 Mon Sep 17 00:00:00 2001
From: Wietse Venema
The name of an optional logfile that is written by the Postfix -postlogd(8) service. A non-empty value selects logging to syslogd(8). +postlogd(8) service. An empty value selects logging to syslogd(8). Specify "/dev/stdout" to select logging to standard output. Stdout logging requires that Postfix is started with "postfix start-fg".
diff --git a/postfix/man/man5/postconf.5 b/postfix/man/man5/postconf.5 index 4a92d179c..a97621d4d 100644 --- a/postfix/man/man5/postconf.5 +++ b/postfix/man/man5/postconf.5 @@ -3750,7 +3750,7 @@ substitutions in regular expression maps. This feature is available in Postfix 2.3 and later. .SH maillog_file (default: empty) The name of an optional logfile that is written by the Postfix -\fBpostlogd\fR(8) service. A non\-empty value selects logging to \fBsyslogd\fR(8). +\fBpostlogd\fR(8) service. An empty value selects logging to \fBsyslogd\fR(8). Specify "/dev/stdout" to select logging to standard output. Stdout logging requires that Postfix is started with "postfix start\-fg". .PP diff --git a/postfix/proto/postconf.proto b/postfix/proto/postconf.proto index ae1b6f4be..77a1baff8 100644 --- a/postfix/proto/postconf.proto +++ b/postfix/proto/postconf.proto @@ -17550,7 +17550,7 @@ parameter. See there for details. %PARAM maillog_fileThe name of an optional logfile that is written by the Postfix -postlogd(8) service. A non-empty value selects logging to syslogd(8). +postlogd(8) service. An empty value selects logging to syslogd(8). Specify "/dev/stdout" to select logging to standard output. Stdout logging requires that Postfix is started with "postfix start-fg".
diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index 04a1ea3d6..61be3f1ed 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -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 "20190312" +#define MAIL_RELEASE_DATE "20190330" #define MAIL_VERSION_NUMBER "3.5" #ifdef SNAPSHOT diff --git a/postfix/src/smtp/smtp_connect.c b/postfix/src/smtp/smtp_connect.c index dc142ff70..aad48e409 100644 --- a/postfix/src/smtp/smtp_connect.c +++ b/postfix/src/smtp/smtp_connect.c @@ -492,6 +492,8 @@ static void smtp_connect_local(SMTP_STATE *state, const char *path) * the "unix:" prefix. */ smtp_cache_policy(state, path); + if (state->misc_flags & SMTP_MISC_FLAG_CONN_CACHE_MASK) + SET_SCACHE_REQUEST_NEXTHOP(state, path); /* * Here we ensure that the iter->addr member refers to a copy of the @@ -567,6 +569,12 @@ static void smtp_connect_local(SMTP_STATE *state, const char *path) msg_panic("%s: unix-domain destination not final!", myname); smtp_cleanup_session(state); } + + /* + * Cleanup. + */ + if (HAVE_SCACHE_REQUEST_NEXTHOP(state)) + CLEAR_SCACHE_REQUEST_NEXTHOP(state); } /* smtp_scrub_address_list - delete all cached addresses from list */ diff --git a/postfix/src/smtpd/smtpd.c b/postfix/src/smtpd/smtpd.c index d115fca3b..f3e107072 100644 --- a/postfix/src/smtpd/smtpd.c +++ b/postfix/src/smtpd/smtpd.c @@ -3878,7 +3878,8 @@ static int bdat_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *argv) } } /* Block too large chunks. */ - if (state->act_size > var_message_limit - chunk_size) { + if (var_message_limit > 0 + && state->act_size > var_message_limit - chunk_size) { state->error_mask |= MAIL_ERROR_POLICY; msg_warn("%s: BDAT request from %s exceeds message size limit", state->queue_id ? state->queue_id : "NOQUEUE",