Hello,
I just upgraded my server from Fedora 42 to Fedora 43 and found out there is an upgrade to dovecot 2.4 which requires completely new config.
I am in doubt how I should convert it.
My main issue is now hot co convert this line:
mail_location = maildir:/var/maildir/%u:INDEX=/var/dovecot-index/%u:CONTROL=/var/dovecot-control/%u
I am uncertain whether the first part should look like:
mail_home = /var/maildir/ mail_driver = maildir mail_path = /var/maildir/%{user}
But I am completely lost how to convert INDEX and CONTROL section. Could someone help me in this matter?
Thanks
Marek
Hello, I just upgraded my server from Fedora 42 to Fedora 43 and found out there is an upgrade to dovecot 2.4 which requires completely new config. I am in doubt how I should convert it. My main issue is now hot co convert this line: mail_location = maildir:/var/maildir/%u:INDEX=/var/dovecot-index/%u:CONTROL=/var/dovecot-control/%u I am uncertain whether the first part should look like: mail_home = /var/maildir/ mail_driver = maildir mail_path = /var/maildir/%{user} But I am completely lost how to convert INDEX and CONTROL section. Could someone help me in this matter? Thanks Marek
My main issue is now hot co convert this line:
mail_location = maildir:/var/maildir/%u:INDEX=/var/dovecot-index/%u:CONTROL=/var/dovecot-control/%u
I am uncertain whether the first part should look like:
mail_home = /var/maildir/ mail_driver = maildir mail_path = /var/maildir/%{user} For mail_home take a look at https://doc.dovecot.org/2.4.2/core/config/auth/users/virtual.html#home-direc... especially the mail_home should not be shared amongst users. The rest looks good.
I have configured mail_driver = maildir mail_path = /srv/mail/%{user | lower}/Maildir
With 'doveadm user -u $username' the above configuration sets mail_home = /srv/mail/%{user | lower}
But I am completely lost how to convert INDEX and CONTROL section. Could someone help me in this matter? From looking through the settings page, in your case this should be mail_control_path = /var/dovecot-index/%{user} https://doc.dovecot.org/2.4.2/core/config/mail_location.html#mail_control_pa...
mail_index_path = /var/dovecot-control/%{user} https://doc.dovecot.org/2.4.2/core/config/mail_location.html#mail_index_path
-- Christian Kivalo
Hello Christian,
thanks for answers. Aki already helped me with this problem. The document on mail_path and mail_home is full of examples which do not match my scenario. I had to set /var/maildir/${user} for both variables.
Marek
Odoslané pomocou bezpečného emailu Proton Mail.
štvrtok 20. novembra 2025, 22:27, Christian Kivalo via dovecot <dovecot@dovecot.org> napísal/a:
My main issue is now hot co convert this line:
mail_location = maildir:/var/maildir/%u:INDEX=/var/dovecot-index/%u:CONTROL=/var/dovecot-control/%u
I am uncertain whether the first part should look like:
mail_home = /var/maildir/ mail_driver = maildir mail_path = /var/maildir/%{user}
For mail_home take a look at https://doc.dovecot.org/2.4.2/core/config/auth/users/virtual.html#home-direc... especially the mail_home should not be shared amongst users. The rest looks good.
I have configured mail_driver = maildir mail_path = /srv/mail/%{user | lower}/Maildir
With 'doveadm user -u $username' the above configuration sets mail_home = /srv/mail/%{user | lower}
But I am completely lost how to convert INDEX and CONTROL section. Could someone help me in this matter?
From looking through the settings page, in your case this should be mail_control_path = /var/dovecot-index/%{user} https://doc.dovecot.org/2.4.2/core/config/mail_location.html#mail_control_pa...
mail_index_path = /var/dovecot-control/%{user} https://doc.dovecot.org/2.4.2/core/config/mail_location.html#mail_index_path
-- Christian Kivalo
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
This will cause issues at least with Sieve filtering, as it creates a directory starting with dot ".", which will be misinterpreted as an IMAP folder.
See https://doc.dovecot.org/2.4.2/core/config/auth/users/virtual.html#home-direc... or specifically https://doc.dovecot.org/2.4.2/core/config/auth/users/virtual.html#ways-to-se...
On Thu, 20 Nov 2025 at 22:40, Marek Greško via dovecot <dovecot@dovecot.org> wrote:
thanks for answers. Aki already helped me with this problem. The document on mail_path and mail_home is full of examples which do not match my scenario. I had to set /var/maildir/${user} for both variables.
participants (3)
-
Christian Kivalo
-
Marek Greško
-
Marek Podmaka