I'm replacing my old Fedora 7 mail server with a new one running CentOS6.3. The old server uses plain-text logins and password for pop3 and IMAP.
I'm unable to get dovecot to authenticate. It's failing the password check.
Trying 192.168.1.50... Connected to orion (192.168.1.50). Escape character is '^]'. +OK orion.crucis.net Dovecot ready. user joe +OK pass abcdefg -ERR Authentication failed. quit +OK Logging out Connection closed by foreign host.
However, another user on the same system works!
Trying 192.168.1.50... Connected to orion (192.168.1.50). Escape character is '^]'. +OK orion.crucis.net Dovecot ready. user bob +OK pass jklmnop +OK Logged in. quit +OK Logging out. Connection closed by foreign host.
I'm looping through eth0 in both of the above. The results are the same if I telnet from 192.168.1.30.
User bob was the one I created on the initial CentOS install, joe was added later.
Here is the extract from maillog.
Oct 4 15:54:12 orion dovecot: auth: pam(joe,192.168.1.30): pam_authenticate() failed: Auth authentication failure (password mismatch?) (given password:abcdefg) Oct 4 15:54:14 orion dovecot: auth: Debug: client out: FAIL#0113#011user=joe Oct 4 15:54:14 orion dovecot: IMAP-login: Disconnected (auth failed, 3 attempts): user=<joe 1>, method=PLAIN, rip=192.168.1.30, lip=192.168.1.50 Oct 4 15:54:14 orion dovecot: auth: Debug: client out: CONT#0112#011VXNlcm5hbWU6 Oct 4 15:54:14 orion dovecot: auth: Debug: client in: CONT#0112#011Y3J1Y2lz Oct 4 15:54:14 orion dovecot: auth: Debug: client out: CONT#0112#011UGFzc3dvcmQ6 Oct 4 15:54:14 orion dovecot: auth: Debug: client in: CONT#0112#011dzB0bXcvMA== Oct 4 15:54:14 orion dovecot: auth: Debug: pam(joe,192.168.1.30): lookup service=dovecot Oct 4 15:54:14 orion dovecot: auth: Debug: pam(joe,192.168.1.30): #1/1 style=1 msg=Passwor d: Oct 4 15:54:16 orion dovecot: auth: pam(crucis,192.168.1.30): pam_authenticate() failed: Auth entication failure (password mismatch?) (given password: abcdefg)
Here's the output from dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-279.5.2.el6.x86_64 x86_64 CentOS release 6.3 (Final) auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = plain disable_plaintext_auth = no listen = * login_greeting = orion.crucis.net Dovecot ready. mail_location = mbox:~/mail:INBOX=/var/mail/%u managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex IMAP4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl passdb { args = session=yes dovecot driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol pop3 { pop3_client_workarounds = outlook-no-nuls pop3_uidl_format = %08Xu%08Xv }
Any suggestion how I get dovecot and pam working? Or, is the problem elsewhere?
mw
From: Mike Watson mikew@crucis.net
However, another user on the same system works! User bob was the one I created on the initial CentOS install, joe was added later.
So, did you compare bob and joe...? Looks the same in passwd, group, shadow? Checked requirements in pam.d? Used ID > 500 ?
JD
It's resolved. There's been many changes from Fedora 7 to RHEL 6/CentOS 6.3. One was a system authentication app. Dovecot was configured correctly, but the app was set to kerebos (sp?). Once I made the app match plaintext all worked.
I set up the Fedora web/mail server some years ago. It's been running smoothly ever since except that user growth plus expanding the website created a growing performance hit---hence the new, faster, larger box.
My learning curve is still steep discovering and understanding the changes since Fedora 7.
mw
--
"Lose not thy airspeed, lest the ground rises up and smites thee." -- William Kershner http://crucis-court.com http://www.crucis.net/1632search
On 10/08/2012 04:51 AM, John Doe wrote:
From: Mike Watsonmikew@crucis.net
However, another user on the same system works! User bob was the one I created on the initial CentOS install, joe was added later.
So, did you compare bob and joe...? Looks the same in passwd, group, shadow? Checked requirements in pam.d? Used ID> 500 ?
JD _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos