From 85e90fece41e0dadb19087a44c4eec8b76c9d5dd Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 4 Jul 2014 23:06:41 +0200 Subject: Increase the timeout in the smtpd waiting for the reinjection from amavis. SMTP client connection caching was introduced in 2.6.0: the SMTP session is held for the next task (in adaptative mode, only when there was a delay of only 5s between the two previous mails), but Postfix will terminate it if the next mail doesn't come soon enough, or if amavis does't terminate it itself (usually after 15s). --- roles/common/files/etc/postfix/master.cf | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/common/files/etc') diff --git a/roles/common/files/etc/postfix/master.cf b/roles/common/files/etc/postfix/master.cf index 02e1658..8ba9f0f 100644 --- a/roles/common/files/etc/postfix/master.cf +++ b/roles/common/files/etc/postfix/master.cf @@ -57,6 +57,7 @@ amavisfeed unix - - n - 5 lmtp # same machine, we need to create another entry, on another port.) 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= + -o smtpd_timeout=${stress?30}${stress:300}s -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -- cgit v1.2.3