I have a head-scratcher which I would be grateful for some help with.
I have a Samsung GT-S5230 mobile phone which supports both IMAP and POP3 email. When I first purchased the phone I set it up with two IMAP accounts to talk to my server. It was a handy method of checking email if I had no other access. Then I upgraded my server to a newer Fedora version (and a newer Dovecot version) and it stopped working. The phone simply goes through the motions of attempting to connect, then pop-ups with a logon failure.
Yesterday, I tried a number of config changes to rule them out. From that I have found:
- It is not my self-signed digital certificate. The default which ships with dovecot also presents the same issue.
- It does not work on IMAP with either SSL, no SSL, plain-text enabled/disabled.
- It works perfectly fine with POP3 over SSL.
I have looked through the configuration files for dovecot 1.2.11 to see if there is any obvious difference to 2.0.16, but I cannot find anything. As a comparison to it working with POP3s, but not IMAPs, I set dovecot to debug mode and copied these entries from maillog:
IMAPs connection - not working:
Jan 15 21:34:02 liberator dovecot: master: Dovecot v2.0.16 starting up (core dumps disabled)
Jan 15 21:34:13 liberator dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 15 21:34:13 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 15 21:34:13 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 15 21:34:13 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 15 21:34:13 liberator dovecot: auth: Debug: auth client connected (pid=19148)
Jan 15 21:34:19 liberator dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011l ip=192.168.10.253#011rip=212.183.128.82#011lport=9 93#011rport=20313#011resp=<hidden>
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: pam(gary,212.183.128.82): lookup service=dovecot
Jan 15 21:34:19 liberator dovecot: auth-worker: Debug: pam(gary,212.183.128.82): #1/1 style=1 msg=Password:
Jan 15 21:34:19 liberator dovecot: auth: Debug: client out: OK#0111#011user=gary
Jan 15 21:34:19 liberator dovecot: auth: Debug: master in: REQUEST#0113576954881#01119148#0111#0110df9c5fca6f 091c41d29f26a07de3c95
Jan 15 21:34:19 liberator dovecot: auth: Debug: passwd(gary,212.183.128.82): lookup
Jan 15 21:34:19 liberator dovecot: auth: Debug: master out: USER#0113576954881#011gary#011system_groups_user=g ary#011uid=501#011gid=100#011home=/home/gary
Jan 15 21:34:19 liberator dovecot: imap-login: Login: user=<gary>, method=PLAIN, rip=212.183.128.82, lip=192.168.10.253, mpid=19152, TLS
POP3s connection - working:
Jan 15 21:35:33 liberator dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 15 21:35:33 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 15 21:35:33 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 15 21:35:33 liberator dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 15 21:35:33 liberator dovecot: auth: Debug: auth client connected (pid=19168)
Jan 15 21:35:40 liberator dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=pop3#011secured#011l ip=192.168.10.253#011rip=212.183.128.23#011lport=9 95#011rport=17465#011resp=<hidden>
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: pam(gary,212.183.128.23): lookup service=dovecot
Jan 15 21:35:40 liberator dovecot: auth-worker: Debug: pam(gary,212.183.128.23): #1/1 style=1 msg=Password:
Jan 15 21:35:40 liberator dovecot: auth: Debug: client out: OK#0111#011user=gary
Jan 15 21:35:40 liberator dovecot: auth: Debug: master in: REQUEST#011611581953#01119168#0111#01112a8856c3ce4 b593a1787060d6705e62
Jan 15 21:35:40 liberator dovecot: auth: Debug: passwd(gary,212.183.128.23): lookup
Jan 15 21:35:40 liberator dovecot: auth: Debug: master out: USER#011611581953#011gary#011system_groups_user=ga ry#011uid=501#011gid=100#011home=/home/gary
Jan 15 21:35:40 liberator dovecot: pop3-login: Login: user=<gary>, method=PLAIN, rip=212.183.128.23, lip=192.168.10.253, mpid=19174, TLS
Jan 15 21:35:42 liberator dovecot: pop3(gary): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=70994
I would be grateful if anyone has suggestions for things I can try. It worked in the past, so I am sure it can be made to work again, if I can just find the IMAP part in dovecot that has changed?! In the meantime, I am happy using POP3s, but I would prefer IMAP.