Quoc Huy Trinh
2006-Mar-18 15:36 UTC
[Dovecot] /etc/passwd authentication: ERR authentication failed
Hi all, I am a newbie with dovecot. I have a problem with it's authentication. -I installed dovecot 1.0 beta3 at /usr/local/dovecot. -I want to use my linux system accounts with mail (authentication using /etc/passwd). -I have a user account: huytq with password: 123456 -dovecot is started ok. I used telnet to login: +OK Welcome LENSECAP HCM mail user huytq +OK pass 123456 -ERR Authentication failed. and this is the infolog file says: dovecot: Mar 18 22:26:50 Info: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=192.168.1.254 rip=192.168.1.253 resp=<hidden> dovecot: Mar 18 22:26:50 Info: auth(default): passwd(huytq, 192.168.1.253): password mismatch dovecot: Mar 18 22:26:51 Info: auth(default): client out: FAIL 1 user=huytq dovecot: Mar 18 22:27:50 Info: pop3-login: Disconnected: Inactivity: user=<huytq>, method=PLAIN, rip=192.168.1.253, lip=192.168.1.254 This is my conf file: ###################### dovecot.conf ################################# base_dir = /opt/dovecot/ protocols = pop3 listen = 192.168.1.254 ssl_disable = yes log_path = /usr/local/dovecot/log/log info_log_path = /usr/local/dovecot/log/infolog log_timestamp = "%b %d %H:%M:%S " disable_plaintext_auth = no auth_debug = yes auth_verbose = yes auth default { mechanisms = plain passdb passwd { } userdb passwd { } user = root } login_dir = /opt/dovecot/login login_chroot = yes login_user = dovecot login_greeting = Welcome QuocHuy mail server login_log_format_elements = user=<%u> homedir=%h method=%m rip=%r lip=%l %c login_log_format = %$: %s default_mail_env = maildir:/opt/mail_data/%u/Maildir mail_debug = yes protocol pop3 { login_executable = /usr/local/dovecot/libexec/dovecot/pop3-login mail_executable = /usr/local/dovecot/libexec/dovecot/pop3 pop3_uidl_format = %v.%u } ######################################################### Any opinion? Thanks in advance. -- Quoc Huy Trinh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20060318/3d787bac/attachment-0001.html>
Timo Sirainen
2006-Mar-25 11:17 UTC
[Dovecot] /etc/passwd authentication: ERR authentication failed
On Sat, 2006-03-18 at 22:36 +0700, Quoc Huy Trinh wrote:> Hi all, I am a newbie with dovecot. I have a problem with it's > authentication. > -I installed dovecot 1.0 beta3 at /usr/local/dovecot. > -I want to use my linux system accounts with mail (authentication > using /etc/passwd). > -I have a user account: huytq with password: 123456So the password really exists in /etc/passwd? And in crypt-format, not in plaintext?> dovecot: Mar 18 22:26:50 Info: auth(default): > passwd(huytq,192.168.1.253): password mismatchEither Dovecot doesn't get the password, or it's wrong.. You could try setting auth_debug_passwords=yes to see what it says. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060325/5eb8cc59/attachment.bin>