Does userdb return your user? What does logging with `auth_debug=yes`
say?
John via dovecot schreef op 2025-07-10 20:57:
Hello,
I have problem getting passwd/userdb to work on 2.4.
Debian 13 Trixie, Exim4, Dovecot 2.4.0.
pop3, lmtp
On a 2.3 system I could use:
passdb {
driver=passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver=static
args = uid=vmail gid=vmail home=/home/vmail/%u
}
service lmtp {
unix_listener lmtp {
}
}
passwd looks like this:
[email protected]:{BLF-CRYPT}$2y$05$[encoded]
[email protected]:{ARGON2ID}$argon2id$v=19$m=65536,t=3,p=1$[encoded]
[email protected]:{ARGON2ID}$argon2id$v=19$m=65536,t=3,p=1$[encoded]
I want to keep the passwd file as is, no extra fields.
mail_uid = vmail
mail_gid = vmail
mail_home = /var/vmail/%{user}
mail_driver = maildir
mail_path = /home/vmail/%{user}/Maildir
pop3_uidl_format = %{guid}
passdb passwd-file {
driver=passwd-file
}
userdb static {
driver=static
}
Directory /var/vmail/[email protected] exists (empty).
This doesn't work. Error messages:
Exim log - attempt to deliver message:
** [email protected] R=dovecot_myrouter_lmtp T=dovecot_transport_lmtp:
LMTP error after RCPT TO:<[email protected]>: 550 5.1.1 <[email protected]>
User doesn't exist: [email protected]
Dovecot debug log:
master: Info: Dovecot v2.4.1-4 (7d8c0e5759) starting up for pop3, lmtp
(core dumps disabled)
auth(info): Info: passwd-file: unknown user - trying the next passdb
lmtp(16933): Debug: Effective uid=0, gid=0, home=/run/dovecot/empty
lmtp(16933): Debug: none: root=/home/vmail/raw-mail-user/Maildir,
index=, indexpvt=, control=, inbox=, alt=
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: userdb
lookup([email protected]): Started userdb lookup
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: conn
unix:/run/dovecot/auth-userdb: Connecting
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: conn
unix:/run/dovecot/auth-userdb (pid=16922,uid=0): Client connected
(fd=16)
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: conn
unix:/run/dovecot/auth-userdb (pid=16922,uid=0): auth input:
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: userdb
lookup([email protected]): auth USER input:
lmtp([email protected])<16933><[some_string]>: Debug: auth-master: userdb
lookup([email protected]): Userdb lookup failed
lmtp(16933): Debug: User session is finished
# doveadm user [email protected]
field value
uid vmail
gid vmail
home /home/vmail/[email protected]
mail_path /home/vmail/[email protected]/Maildir
How can this be fixed?
Thank you for any help!
John
Sent with Proton Mail secure email.
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Met vriendelijke groeten,
William David Edwards
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]