Dovecot auth-worker 日志记录失败但登录有效

Dovecot auth-worker 日志记录失败但登录有效

每次登录时我都会收到三行日志:

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>

有人能向我解释一下这里发生了什么吗?为什么 pam 和 passwd 一开始会失败,但登录却可以正常工作?

答案1

我在 /etc/dovecot/conf.d/auth-system.conf.ext 中有多个 userdb 条目

userdb {
 driver = passwd
}

userdb {
 driver = pam
}

我删除了它们两个,现在它只使用 /etc/dovecot/conf.d/auth-sql.conf.ext 中列出的 userdb 的 sql 驱动程序

相关内容