[Dovecot] pop3 authentication failure - password mismatch
I tried to run dovecot 1.0 built by myself but encountered the above problem.
See the error traces below. First of all, the password and user are correct, as it worked with the 0.99 rpm version of dovecot. I also hand verified with ssh.
I also attached the dovecot config file below. Any ideas?
Jun
fetchmail output on client:
fetchmail: POP3< +OK Dovecot ready. fetchmail: POP3> CAPA fetchmail: POP3< +OK fetchmail: POP3< CAPA fetchmail: POP3< TOP fetchmail: POP3< USER fetchmail: POP3< UIDL fetchmail: POP3< RESP-CODES fetchmail: POP3< PIPELINING fetchmail: POP3< SASL PLAIN fetchmail: POP3< . fetchmail: POP3> USER jam fetchmail: POP3< +OK fetchmail: POP3> PASS * fetchmail: POP3< -ERR Authentication failed. fetchmail: Authentication failed.
maillog on dovecot server:
Jul 22 18:28:18 hsiufen dovecot: auth(default): passwd(jam,24.6.106.170): password mismatch Jul 22 18:28:19 hsiufen dovecot: pop3-login: Aborted login [24.6.106.170] Jul 22 18:29:32 hsiufen dovecot: Killed with signal 2
dovecot.conf
protocols = imap imaps pop3 pop3s listen = * ssl_disable = no disable_plaintext_auth = no protocol imap { login_executable = /root/local/encap/dovecot-1.0/libexec/dovecot/imap-login mail_executable = /root/local/encap/dovecot-1.0/libexec/dovecot/imap } protocol pop3 { login_executable = /root/local/encap/dovecot-1.0/libexec/dovecot/pop3-login mail_executable = /root/local/encap/dovecot-1.0/libexec/dovecot/pop3 } auth_executable = /root/local/encap/dovecot-1.0/libexec/dovecot/dovecot-auth auth_verbose = yes auth default { mechanisms = plain passdb = passwd userdb = passwd user = root }
On Fri, 2005-07-22 at 11:44 -0700, James Sun wrote:
Jul 22 18:28:18 hsiufen dovecot: auth(default): passwd(jam,24.6.106.170): password mismatch .. auth default { mechanisms = plain passdb = passwd userdb = passwd user = root }
Are you sure you're using passwd passdb? Nowadays it only works with BSDs. Maybe you were using pam before?
On 7/22/05, Timo Sirainen tss@iki.fi wrote:
On Fri, 2005-07-22 at 11:44 -0700, James Sun wrote:
Jul 22 18:28:18 hsiufen dovecot: auth(default): passwd(jam,24.6.106.170): password mismatch .. auth default { mechanisms = plain passdb = passwd userdb = passwd user = root }
Are you sure you're using passwd passdb? Nowadays it only works with BSDs. Maybe you were using pam before?
If I change passdb to "pam", then dovecot will exist immediate with errors. See below:
Jul 22 22:16:34 hsiufen dovecot: Dovecot v1.0-stable starting up Jul 22 22:16:36 hsiufen dovecot: child 7893 (auth) returned error 89 Jul 22 22:16:36 hsiufen dovecot: Auth process died too early - shutting down Jul 22 22:16:36 hsiufen dovecot: auth(default): Unknown passdb type 'pam'
Maybe there is something else I should fix here instead of changing passdb?
Thanks.
Jun
On 7/22/05, James Sun jamjazzy@gmail.com wrote:
On 7/22/05, Timo Sirainen tss@iki.fi wrote:
On Fri, 2005-07-22 at 11:44 -0700, James Sun wrote:
Jul 22 18:28:18 hsiufen dovecot: auth(default): passwd(jam,24.6.106.170): password mismatch .. auth default { mechanisms = plain passdb = passwd userdb = passwd user = root }
Are you sure you're using passwd passdb? Nowadays it only works with BSDs. Maybe you were using pam before?
If I change passdb to "pam", then dovecot will exist immediate with errors. See below:
Jul 22 22:16:34 hsiufen dovecot: Dovecot v1.0-stable starting up Jul 22 22:16:36 hsiufen dovecot: child 7893 (auth) returned error 89 Jul 22 22:16:36 hsiufen dovecot: Auth process died too early - shutting down Jul 22 22:16:36 hsiufen dovecot: auth(default): Unknown passdb type 'pam'
Maybe there is something else I should fix here instead of changing passdb?
Thanks.
Jun
Just found that my build host does not have pam-devel library installed. I suppose that might be the root of this particular problem. I will will install pam-devel and give it a try again.
Jun
participants (2)
-
James Sun
-
Timo Sirainen