chore: apply feedback from @polarathene

ref: https://github.com/docker-mailserver/docker-mailserver/pull/4536#discussion_r2259280851

Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Georg Lauterbach 2026-02-08 18:30:29 +01:00
parent c9947973f8
commit 681ea11f07
No known key found for this signature in database

View File

@ -2,6 +2,7 @@
## Mailbox locations and namespaces
##
# TODO The following comment block probably needs further refinements
# Location for users' mailboxes. The default is empty, which means that Dovecot
# tries to find the mailboxes automatically. This won't work if the user
# doesn't yet have any mail, so you should explicitly tell Dovecot the full
@ -10,13 +11,13 @@
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are
# kept. This is called the "root mail directory", and it must be the first
# path given in the mail_driver+mail_path settings.
# path of `mail_path`.
# ref: https://doc.dovecot.org/main/core/config/mail_location.html#mail_driver
mail_driver = maildir
# ref: https://doc.dovecot.org/main/core/config/mail_location.html#mail_path
mail_path = /var/mail/%d/%n
mail_home = /var/mail/%d/%n/home/
mail_path = /var/mail/%{user | domain}/%{user | username}
mail_home = /var/mail/%{user | domain}/%{user | username}/home
# If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections.