[Dovecot] Thunderbird log-in --->Authentication failed - password in uppercase in log files
jacques
jacques at itopia-biz.info
Thu May 10 12:03:25 EEST 2012
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 at eatright-behealthy.com,4
1.48.226.1): query: SELECT password FROM mailbox WHERE username =
'test at eatright
-behealthy.com'
2012-05-09 09:55:03 auth-worker(19577): Info:
sql(test at eatright-behealthy.com,41
.48.226.1): Password mismatch
2012-05-09 09:55:03 auth-worker(19577): Debug:
sql(test at 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 at eatrig
ht-behealthy.com
2012-05-09 09:55:05 imap-login: Info: Disconnected (auth failed, 3
attempts in 1
5 secs): user=<test at 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 = </etc/ssl/certs/ssl-mail.pem
ssl_cipher_list =
ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
ssl_key = </etc/ssl/private/ssl-mail.key
userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
userdb {
args = uid=150 gid=150 home=/home/vmail/%d/%u allow_all_users=yes
driver = static
}
protocol pop3 {
mail_max_userip_connections = 10
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
deliver_log_format = msgid=%m: %$
log_path = /home/vmail/dovecot-deliver.log
postmaster_address = postmaster
quota_full_tempfail = yes
rejection_reason = Your message to <%t> was automatically rejected:%n%r
}
protocol imap {
mail_max_userip_connections = 10
}
Please help if you can!
More information about the dovecot
mailing list