Wednesday, January 02, 2008

Dovecot Aborts the Login

Dovecot IMAP simply says "Aborted login" without any additional info
I was trying to login with thunderbird mailclient.

The error message I was getting in the logfiles was:

Jan 3 18:17:03 bosslinux dovecot: imap-login: Aborted login: rip=192.168.31.54, lip=192.168.31.125, TLS

No other information was avai;able in the logs.

I eventually discovered the problem was that the server was refusing to even speak plaintext UNLESS the process talking to it was local (like Squirrelmail, for example). So the remote clients got immediately disconnected the very moment dovecot realized they weren't asking for an SSL/TLS connection.

I had two solutions available for this. On the client side, I changed to use TLS or SSL. And then tried login, it worked !!

However, its difficult to ask all the clients to do this, so there is another solution fromt he server side, but this is not preferable.

In /etc/dovecot/dovecot.conf:
disable_plaintext_auth=no

And then restart the dovecot
/etc/init.d/dovecot restart (BOSS Linux distro)

it worked !!

Thus my problem solved.