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
<[email protected]> 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-directories
> 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_path
>
> 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 -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]