After upgrading from 11.10 to 12.04 it seems as though Courier IMAP is having issues.
Once I log in it seems as though the connection is dropped.
See the output below showing that I can connect, can interact with the server but can't login.
sy@twistie [505] log >nc localhost 143
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
1 LOGIN my@email.com wrongpassword
1 NO Login failed.
1 LOGIN my@email.com correctpassword
sy@twistie [505] log >
I've upped the debug level for courier and here's the output of a login attempt from the mail.debug log.
May 1 19:54:31 twistie imapd: Connection, ip=[::ffff:127.0.0.1]
May 1 19:54:33 twistie authdaemond: received auth request, service=imap, authtype=login
May 1 19:54:33 twistie authdaemond: authmysql: trying this module
May 1 19:54:33 twistie authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), quota, "", "" FROM users WHERE email = 'my@email.com'
May 1 19:54:33 twistie authdaemond: password matches successfully
May 1 19:54:33 twistie authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=my@email.com, fullname=<null>, maildir=email.com/my/, quota=0, options=<null>
May 1 19:54:33 twistie authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=my@email.com, fullname=<null>, maildir=email.com/my/, quota=0, options=<null>
This looks to me as though it gets authenticated but then nothing happens and the connection drops.
The weird bit is this does work perfectly for a few hours but then I start getting this problem. Restarting the courier processes doesn't fix it but a reboot of the system does until it fails again after a few hours.
There's nothing obvious in the logs and this has worked for the past five years or so.
I'm stumped as to where to look next. Does anyone have any idea on what the issue could be?
Bookmarks