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 =