Re: Auth USER lookup failed
On 02/05/2024 10:17 PM MST thecoudge@gmail.com wrote:
I have dovecot working with PAM and Samba DC authentication for IMAP. However when I'm attempting to pass emails from postfix via LMTP I don't actually need to authenticate LMTP I'm happy to check for valid users upstream.
I'm getting the error: Feb 06 15:11:39 Debian-server postfix/local[178200]: ADF0E78713C: passing dom.username@Debian-server.sr.local to transport=lmtp Feb 06 15:11:39 Debian-server dovecot[178075]: auth: Error: static(dom.username): passdb doesn't support lookups, can't verify user's existence Feb 06 15:11:39 Debian-server dovecot[178075]: lmtp(dom.username@Debian-server.sr.local)<178233>
: Error: auth-master: userdb lookup(dom.username@Debian-server.sr.local): Auth USER lookup failed
You need to define a userdb to return user information. Since LMTP doesn't require auth, it can't use the passdb so that's what the error message is saying.
michael
Thanks Michael, I was trying to avoid keeping usernames in a seperate location as they are already stored in the Samba DC. Will it be necessary to keep a seperate list? I tried adding this: userdb { driver = static args = uid=vmail gid=vmail home=/var/mail/virtual/%d/%n }
But I still get the same error.
If you have already setup a passdb, you can propably use an almost identical configuration as user_db.
E.g. we use ldap for our users and have the following config in the dovecot conf:
userdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext override_fields = home=/data/mail/%d/%u/ uid=1234 gid=1234 mail_location=maildir:/data/mail/%d/%u/ } passdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext }
The overrides are obviously only necessary if you don't have the correct home/mail_location/uid/gid values in your db.
On 2/7/24 12:25, Ed wrote:
Thanks Michael, I was trying to avoid keeping usernames in a seperate location as they are already stored in the Samba DC. Will it be necessary to keep a seperate list? I tried adding this: userdb { driver = static args = uid=vmail gid=vmail home=/var/mail/virtual/%d/%n }
But I still get the same error.
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (3)
-
Ed
-
Markus Bach
-
Michael Slusarz