Userdb problem
Erwan David
erwan at rail.eu.org
Thu Nov 11 20:31:51 UTC 2021
Hello
I am trying to move authentication from ldap to passwdfile.
Autentication works, but clients do not find the mails.
With ldap I have :
root at email:~ # doveadm auth login erwan xxxxx
passdb: erwan auth succeeded
extra fields:
user=erwan
userdb extra fields:
erwan
home=/var/db/mailboxes/erwan
/var/db/mailboxes/erwan=/var/db/mailboxes/erwan
uid=587
gid=587
auth_mech=PLAIN
With passwdfile I get
root at email:~ # doveadm auth login erwan xxxxx
passdb: erwan auth succeeded
extra fields:
user=erwan
userdb extra fields:
erwan
home=/var/db/mailboxes/erwan,uid=587,gid=587
uid=587
gid=587
auth_mech=PLAIN
The only difference is this
"/var/db/mailboxes/erwan=/var/db/mailboxes/erwan" (which is the place
where email is stored).
What is the problem with this ?
auth configuration is :
passdb {
driver = passwd-file
args = scheme=SHA512-CRYPT username_format=%n
/usr/local/etc/dovecot/users
}
userdb {
driver = passwd-file
args = username_format=%n /usr/local/etc/dovecot/users
# Default fields that can be overridden by passwd-file
#default_fields = quota_rule=*:storage=1G
default_fields = home=/var/db/mailboxes/%n,uid=587,gid=587
# Override fields from passwd-file
#override_fields = home=/home/virtual/%u
override_fields = home=/var/db/mailboxes/%n,uid=587,gid=587
}
More information about the dovecot
mailing list