Score:0

Dovecot auth-worker logs fails but log in works

cn flag

Everytime a log in occurs I get three log lines:

Mar 19 15:29:05 auth-worker(6379): Info: pam([email protected],124.1.1.1,<AL/fkjf3yr98xTrl>): pam_authenticate() failed: Authentication failure (Password mismatch?)
Mar 19 15:29:05 auth-worker(6379): Info: passwd([email protected],124.1.1.1,<AL/fkjf3yr98xTrl>): unknown user
Mar 19 15:29:05 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=124.1.1.1, lip=1.1.1.1, mpid=6387, TLS, session=<AL/fkjf3yr98xTrl>

Can anyone explain to me what is happening here? Why does pam and passwd fail at first but the log in does work?

vidarlo avatar
ar flag
Possibly because you have other mechanisms than PAM defined. Unless you show us your configuration, we can't know.
anx avatar
fr flag
anx
Usually `pam` is setup in such a way that for each *service* there is a separate file in `/etc/pam.d` - your *login* or *ssh* service configuration may differ from the defaults for *dovecot*.
Score:0
cn flag

I had multiple userdb entries in /etc/dovecot/conf.d/auth-system.conf.ext

userdb {
 driver = passwd
}

userdb {
 driver = pam
}

I removed them both and now it only uses sql driver for userdb which was listed in /etc/dovecot/conf.d/auth-sql.conf.ext

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.