I found the cause of the problem. File 20-lmtp.conf (Debian split
configuration) contained this section:
protocol lmtp {
auth_username_format = %{user | username}
}
passdb{} used the prefix from an email address when invoked through lmtp.
Changed this line:
auth_username_format = %{user}
This worked and the message is delivered. Thanks for your help William!
The quote below fixes the user name (test).
On Friday, July 11th, 2025 at 5:49 AM, John via dovecot <[email protected]>
wrote:
> Yes, the user is found with "doveadm user", output is in the message.
>
> output with auth_debug = yes:
>
> lmtp(18970): Debug: Effective uid=0, gid=0, home=/run/dovecot/empty
> lmtp(18970): Debug: none: root=/home/vmail/raw-mail-user/Maildir, index=,
> indexpvt=, control=, inbox=, alt=
> lmtp([email protected])<18970><[code]>: Debug: auth-master: userdb
> lookup([email protected]): Started userdb lookup
>
> lmtp([email protected])<18970><[code]>: Debug: auth-master: conn
> unix:/run/dovecot/auth-userdb: Connecting
>
> lmtp([email protected])<18970><[code]>: Debug: auth-master: conn
> unix:/run/dovecot/auth-userdb (pid=18947,uid=0): Client connected (fd=16)
>
> auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
> auth: Debug: Read auth token secret from /run/dovecot/auth-token-secret.dat
> auth: Debug: passwd-file /etc/dovecot/passwd:Read 1 users in 0 secs
> auth: Debug: conn unix:/run/dovecot/auth-userdb (pid=18970,uid=0): Server
> accepted connection (fd=19)
> auth: Debug: master in: USER 1 [email protected] protocol=lmtp
> auth(info): Debug: static: Performing userdb lookup
> auth(info): Debug: passwd-file: Performing passdb lookup
> auth(info): Debug: passwd-file: lookup: user=test file=/etc/dovecot/passwd
> auth(info): Debug: passwd-file: Finished passdb lookup
> auth(info): Debug: pam: Performing passdb lookup
> auth(info): Debug: pam: passdb doesn't support credential lookups
> auth(info): Debug: pam: Finished passdb lookup
> auth(info): Debug: static: Finished userdb lookup
> auth: Debug: userdb out: NOTFOUND 1
> lmtp([email protected])<18970><[code]>: Debug: auth-master: conn
> unix:/run/dovecot/auth-userdb (pid=18947,uid=0): auth input:
>
> lmtp([email protected])<18970><[code]>: Debug: auth-master: userdb
> lookup([email protected]): auth USER input:
>
> lmtp([email protected])<18970><[code]>: Debug: auth-master: userdb
> lookup([email protected]): Userdb lookup failed
>
> lmtp(18970): Debug: User session is finished
>
> On Thursday, July 10th, 2025 at 9:51 PM, William David Edwards via dovecot
> [email protected] wrote:
>
> > Does userdb return your user? What does logging with `auth_debug=yes`
> > say?
>
>
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]