Updating to Courier IMAP 4.2.0_1 broke authentication with SSL on 993 for roundcube (and perhaps others) but not for Thunderbird. The following worked for me:
Change:
TLS_PROTOCOL=SSL3
to:
TLS_PROTOCOL=SSL23
in /usr/local/etc/courier-imap/imapd-ssl
(from this fine site)

