From f478623d8c61f8e63a0b3ea0c2adf9cdcadadb0c Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 1 Jul 2024 16:45:50 +0000 Subject: [PATCH] Increase number of logged in IMAP sessions to 50000 --- CHANGELOG.md | 3 +++ cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26850dd0..2ff25d73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ - replace `bash` with `/bin/sh` ([#334](https://github.com/deltachat/chatmail/pull/334)) +- Increase number of logged in IMAP sessions to 50000 + ([#335](https://github.com/deltachat/chatmail/pull/335)) + ## 1.3.0 - 2024-06-06 - don't check necessary DNS records on cmdeploy init anymore diff --git a/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 b/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 index 1fb7fd4f..144ccf58 100644 --- a/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 +++ b/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 @@ -19,6 +19,22 @@ mail_debug = yes # master: Warning: service(stats): client_limit (1000) reached, client connections are being dropped default_client_limit = 20000 +# Increase number of logged in IMAP connections. +# Each connection is handled by a separate `imap` process. +# `imap` process should have `client_limit=1` as described in +# +# so each logged in IMAP session will need its own `imap` process. +# +# If this limit is reached, +# users will fail to LOGIN as `imap-login` process +# will accept them logging in but fail to transfer logged in +# connection to `imap` process until someone logs out and +# the following warning will be logged: +# Warning: service(imap): process_limit (1024) reached, client connections are being dropped +service imap { + process_limit = 50000 +} + mail_server_admin = mailto:root@{{ config.mail_domain }} mail_server_comment = Chatmail server