> On 28 May 2021, at 14:34, Gabx <gabri...@tcpreset.net> wrote:
> 
> doveconf -n:
> 
> https://cryptpad.fr/pad/#/2/pad/edit/UjvNTPoEmNDBFm8dmzzp67YM/

Your configuration has no userdb referencing /etc/dovecot/passwd.override, so 
of course it is not taken into account.

I implore you to read up on how userdbs function in dovecot to properly 
understand what you are doing, because you seem to be fumbling a bit, however a 
working configuration is probably to add `result_success = continue-ok` to your 
existing userdb, and then add a following userdb that allows you to override 
some fields (such as "home") for some users:

/etc/dovecot/dovecot.conf:

userdb {
  driver = passwd
  result_success = continue-ok
}
userdb {
  driver = passwd-file
  args = /etc/dovecot/override.passwd
}

This means that user information will first be looked up through the passwd 
driver (/etc/passwd), and then subsequently (because of "continue-ok") override 
any extra fields from the override file /etc/dovecot/override.passwd for any 
users listed in this file.

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

The colons in this file are -not- optional. They are required to conform to the 
passwd-file format ("user:password:uid:gid:(gecos):home:(shell):extra_fields"). 
Empty fields should contain the empty string. See:

  https://doc.dovecot.org/configuration_manual/authentication/passwd_file/

- Eirik

Reply via email to