[Dovecot] Thunderbird log-in --->Authentication failed - password in uppercase in log files
Hi I use dovecot 2.1.5 with postfix, amavis, spamassasin, mysql, virtual domains only. Dovecot being used for SASL authentication, and delivery. When I connect via telnet to port 25 or with smtp and try to do auth plain with mmencode connection string authentication works fine. I can send and recieve messages, and relay works as well.
Trying to set up thunderbird to connect to this server I get problems - seems as if the password is resolved proper from the database (use postfixadmin), but then compares an upper case version of my password in the MD5-CRYPT() call to the password string obtained from the database. I do see the base64 encoded connection string in dovecot log though.
Any ideas?
extract from /var/log/dovecot.log: 345 resp=AHRlc3RAZWF0cmlnaHQtYmVoZWFsdGh5LmNvbQBURVNURVI= 2012-05-09 09:55:03 auth-worker(19577): Debug: sql(test@eatright-behealthy.com,4 1.48.226.1): query: SELECT password FROM mailbox WHERE username = 'test@eatright -behealthy.com' 2012-05-09 09:55:03 auth-worker(19577): Info: sql(test@eatright-behealthy.com,41 .48.226.1): Password mismatch 2012-05-09 09:55:03 auth-worker(19577): Debug: sql(test@eatright-behealthy.com,4 1.48.226.1): MD5-CRYPT(TESTER) != '$1$5224e6b6$bmc53Tpz2h3nknBCq/emc/' 2012-05-09 09:55:05 auth: Debug: client out: FAIL 3 user=test@eatrig ht-behealthy.com 2012-05-09 09:55:05 imap-login: Info: Disconnected (auth failed, 3 attempts in 1 5 secs): user=test@eatright-behealthy.com, method=PLAIN, rip=41.48.226.1, lip= 216.144.nnn.125, TLS 2012-05-09 10:01:52 auth: Debug: Loading modules from directory: /usr/local/lib/ dovecot/auth 2012-05-09 10:01:52 auth: Debug: auth client connected (pid=31830)
The password should be 'tester' - not 'TESTER' dovecot -n output:
# 2.1.5: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-274.el5.028stab093.2 x86_64 Ubuntu 10.10 simfs auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes default_login_user = root first_valid_uid = 150 listen = * log_path = /var/log/dovecot.log log_timestamp = "%Y-%m-%d %H:%M:%S " login_greeting = Dovecot ready :-) mail_debug = yes mail_gid = vmail mail_location = maildir:/home/vmail/%d/%n/Maildir:INDEX=/home/vmail/%d/%n/Maildir/indexes mail_privileged_group = mail mail_uid = 150 passdb { args = /etc/dovecot/dovecot-mysql.conf driver = sql } protocols = imap pop3 service auth { unix_listener /var/run/dovecot/auth-master { mode = 0600 user = vmail } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = root } service imap-login { chroot = login user = dovecot } service pop3-login { chroot = login user = dovecot } ssl_cert = was automatically rejected:%n%r } protocol imap { mail_max_userip_connections = 10 }
Please help if you can!
On Thu, 2012-05-10 at 11:03 +0200, jacques wrote:
Trying to set up thunderbird to connect to this server I get problems - seems as if the password is resolved proper from the database (use postfixadmin), but then compares an upper case version of my password in the MD5-CRYPT() call to the password string obtained from the database. I do see the base64 encoded connection string in dovecot log though.
Like the base64 string also says: the IMAP client sent the password uppercased..
Try manually: http://wiki2.dovecot.org/TestInstallation
Thank Timo After connecting manually with telnet thunderbird can also connect. :-) J
On 10/05/2012 11:16, Timo Sirainen wrote:
On Thu, 2012-05-10 at 11:03 +0200, jacques wrote:
Trying to set up thunderbird to connect to this server I get problems - seems as if the password is resolved proper from the database (use postfixadmin), but then compares an upper case version of my password in the MD5-CRYPT() call to the password string obtained from the database. I do see the base64 encoded connection string in dovecot log though.
Like the base64 string also says: the IMAP client sent the password uppercased..
Try manually: http://wiki2.dovecot.org/TestInstallation
participants (2)
-
jacques
-
Timo Sirainen