From a46db6bd0ddcc80420b912c2192518a6c34fdc30 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 13 Dec 2025 21:09:57 +0000 Subject: Migrate dovecot from 2.3 to 2.4 See [1] for the anouncement. Basically, all config options were renamed or altered in some way. Brilliant. Used [2] as a reference as official documentation lack side by side migration examples. [1]: https://archlinux.org/news/dovecot-24-requires-manual-intervention/ [2]: https://zunzuncito.oriole.systems/28/ --- roles/dovecot/files/dovecot.conf | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/roles/dovecot/files/dovecot.conf b/roles/dovecot/files/dovecot.conf index 3271cbd..4c59141 100644 --- a/roles/dovecot/files/dovecot.conf +++ b/roles/dovecot/files/dovecot.conf @@ -1,15 +1,23 @@ +# Freeze configuration syntax. +dovecot_config_version = 2.4.0 + +# Freeze storage file format version. +dovecot_storage_version = 2.4.0 + # Protocols we want to be serving. protocols = imap pop3 lmtp # Path to the mail directory. -mail_location = maildir:/var/mail/%d/%n/Maildir +mail_home = /var/mail/%{user | domain}/%{user | username} +mail_path = ~/Maildir +mail_driver = maildir # Path to SSL certificate files. -ssl_cert =