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
}
Timo Sirainen
2005-Jul-22 19:09 UTC
[Dovecot] pop3 authentication failure - password mismatch
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? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050722/294b7a54/attachment-0001.bin>
On 7/22/05, Timo Sirainen <tss at 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, Girish Patangay <girish at intoto.com> wrote:> Shouldn't you be using "shadow" instead of passwd for the passdb? > > Just a curious question. >Yes! You are right. "shadow" should work as well. I just give it a try and auth worked! Thanks. However, I am not hitting another problem : no proper permission. If I understand correctly I have set it in dovecot.conf file to use "root" for processing. How come I don't have enough permission? Jul 23 02:26:56 hsiufen dovecot: Dovecot v1.0-stable starting up Jul 23 02:28:10 hsiufen dovecot: pop3-login: Login: jam [24.6.106.170] Jul 23 02:28:10 hsiufen dovecot: POP3(jam): open(/var/mail/.temp.hsiufen.net.15682.f3c4cf83d750e6e4) failed: Permission denied Jul 23 02:28:10 hsiufen dovecot: POP3(jam): file_lock_dotlock() failed with mbox file /var/mail/jam: Permission denied Jul 23 02:28:31 hsiufen dovecot: Killed with signal 2 Any ideas? Jun