From 5633c0612e860b010f45a855866eb0ada9809734 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 29 Oct 2023 16:05:40 +0000 Subject: [PATCH] dovecot: increase number of simultaneous connections handled by imap-login Otherwise deltachat core CI running fails with "Connection queue full" error on IMAP connections. --- .../deploy_chatmail/dovecot/dovecot.conf.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/deploy-chatmail/src/deploy_chatmail/dovecot/dovecot.conf.j2 b/deploy-chatmail/src/deploy_chatmail/dovecot/dovecot.conf.j2 index 85abe5f4..bb1c4ea8 100644 --- a/deploy-chatmail/src/deploy_chatmail/dovecot/dovecot.conf.j2 +++ b/deploy-chatmail/src/deploy_chatmail/dovecot/dovecot.conf.j2 @@ -118,6 +118,24 @@ service auth-worker { user = vmail } +service imap-login { + # High-security mode. + # Each process serves a single connection and exits afterwards. + # This is the default, but we set it explicitly to be sure. + # See for details. + service_count = 1 + + # Inrease the number of simultaneous connections. + # + # As of Dovecot 2.3.19.1 the default is 100 processes. + # Combined with `service_count = 1` it means only 100 connections + # can be handled simultaneously. + process_limit = 10000 + + # Avoid startup latency for new connections. + process_min_avail = 10 +} + ssl = required ssl_cert =