Different Maildir Locations

Eirik Rye rye at trojka.no
Fri May 28 17:41:18 EEST 2021



> On 28 May 2021, at 16:30, Eirik Rye <rye at trojka.no> wrote:
> 
> With that said, the override file you created is also invalid. It should be something like this:
> 
> /etc/dovecot/override.passwd:
> 
> gabriel1:*::::::mail=~/Maildir
> user1:*::::::mail=~/user1/Maildir
> user2:*::::::mail=~/user2/mail

Sorry, I believe overriding the userdb field `mail` must be prefixed with `userdb_`, otherwise it will be considered a passdb field instead, so the correct format would be:

gabriel1:*::::::userdb_mail=~/Maildir
user1:*::::::userdb_mail=~/user1/Maildir
user2:*::::::userdb_mail=~/user2/mail

https://doc.dovecot.org/configuration_manual/authentication/user_database_extra_fields/#passwd-file


More information about the dovecot mailing list