From 7928df0986a748e9f09bfd4b864c94aaadd2d02c Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Sat, 2 Aug 2025 16:39:52 +0200 Subject: [PATCH] fix: Dovecot: split `mail_location` Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- target/dovecot/10-mail.conf | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/target/dovecot/10-mail.conf b/target/dovecot/10-mail.conf index 9fcd3c24..1cb957a4 100644 --- a/target/dovecot/10-mail.conf +++ b/target/dovecot/10-mail.conf @@ -10,25 +10,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_location setting. -# -# There are a few special variables you can use, eg.: -# -# %u - username -# %n - user part in user@domain, same as %u if there's no domain -# %d - domain part in user@domain, empty if there's no domain -# %h - home directory -# -# See doc/wiki/Variables.txt for full list. Some examples: -# -# mail_location = maildir:~/Maildir -# mail_location = mbox:~/mail:INBOX=/var/mail/%u -# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n -# -# -# +# path given in the mail_driver+mail_path settings. + +# 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_location = maildir:/var/mail/%d/%n # If you need to set multiple mailbox locations or want to change default # namespace settings, you can do it by defining namespace sections.