Dovecot: make home dir distinct from mail dir (#3335)

* add new home dir for Dovecot

I tried changing the mail dir, but this is a _very_ disruptive change,
so I took approach 3 on
<https://doc.dovecot.org/configuration_manual/home_directories_for_virtual_users/>,
whereby the home directory is now inside the mail directory.

The MDBOX/SDBOX formats are not touched by this change. The change
itself could be considered breaking though.

* adjust Sieve tests accordingly

* Update target/dovecot/10-mail.conf

* Update target/dovecot/auth-passwdfile.inc

---------

Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
Georg Lauterbach 2023-05-15 20:10:29 +02:00 committed by GitHub
parent a72adc2731
commit 7453bc096b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 11 deletions

View file

@ -27,6 +27,7 @@
#
# <doc/wiki/MailLocation.txt>
#
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

View file

@ -6,4 +6,3 @@ passdb {
result_success = continue
#auth_bind = yes
}

View file

@ -15,5 +15,5 @@ passdb {
userdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/userdb
default_fields = uid=docker gid=docker home=/var/mail/%d/%u
default_fields = uid=docker gid=docker home=/var/mail/%d/%u/home/
}