diff --git a/chatmaild/src/chatmaild/dictproxy.py b/chatmaild/src/chatmaild/dictproxy.py index a0a7b654..19f71282 100644 --- a/chatmaild/src/chatmaild/dictproxy.py +++ b/chatmaild/src/chatmaild/dictproxy.py @@ -22,7 +22,7 @@ class DictProxy: wfile.flush() def handle_dovecot_request(self, msg, transactions): - # see https://doc.dovecot.org/developer_manual/design/dict_protocol/#dovecot-dict-protocol + # see https://doc.dovecot.org/2.3/developer_manual/design/dict_protocol/#dovecot-dict-protocol short_command = msg[0] parts = msg[1:].split("\t") diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 5914735f..895ca6d2 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -16,7 +16,7 @@ NOCREATE_FILE = "/etc/chatmail-nocreate" def encrypt_password(password: str): - # https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ + # https://doc.dovecot.org/2.3/configuration_manual/authentication/password_schemes/ passhash = crypt_r.crypt(password, crypt_r.METHOD_SHA512) return "{SHA512-CRYPT}" + passhash diff --git a/cmdeploy/src/cmdeploy/dovecot/auth.conf b/cmdeploy/src/cmdeploy/dovecot/auth.conf index cc9758d4..fe40a9b0 100644 --- a/cmdeploy/src/cmdeploy/dovecot/auth.conf +++ b/cmdeploy/src/cmdeploy/dovecot/auth.conf @@ -4,7 +4,7 @@ iterate_prefix = userdb/ default_pass_scheme = plain # %E escapes characters " (double quote), ' (single quote) and \ (backslash) with \ (backslash). -# See +# See # for documentation. # # We escape user-provided input and use double quote as a separator. diff --git a/cmdeploy/src/cmdeploy/dovecot/deployer.py b/cmdeploy/src/cmdeploy/dovecot/deployer.py index bda9e190..c7dc159d 100644 --- a/cmdeploy/src/cmdeploy/dovecot/deployer.py +++ b/cmdeploy/src/cmdeploy/dovecot/deployer.py @@ -116,7 +116,7 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool): ) need_restart |= lua_push_notification_script.changed - # as per https://doc.dovecot.org/configuration_manual/os/ + # as per https://doc.dovecot.org/2.3/configuration_manual/os/ # it is recommended to set the following inotify limits for name in ("max_user_instances", "max_user_watches"): key = f"fs.inotify.{name}" diff --git a/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 b/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 index cdc57470..d13eeb70 100644 --- a/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 +++ b/cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2 @@ -26,7 +26,7 @@ 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, @@ -44,11 +44,11 @@ mail_server_comment = Chatmail server # `zlib` enables compressing messages stored in the maildir. # See -# +# # for documentation. # # quota plugin documentation: -# +# mail_plugins = zlib quota imap_capability = +XDELTAPUSH XCHATMAIL @@ -125,13 +125,13 @@ plugin { protocol lmtp { # notify plugin is a dependency of push_notification plugin: - # + # # # push_notification plugin documentation: - # + # # # mail_lua and push_notification_lua are needed for Lua push notification handler. - # + # mail_plugins = $mail_plugins mail_lua notify push_notification push_notification_lua } @@ -154,7 +154,7 @@ plugin { # push_notification configuration plugin { - # + # push_notification_driver = lua:file=/etc/dovecot/push_notification.lua }