Gentoo's gentoo-pop3d.rc and gentoo-imapd improperly initializes the TLS start environment variable. This is for all versions of Courier-IMAP that to TLS. The fix: In gentoo-pop3d.rc: export POP3_STARTTLS=$POP3DSTARTTLS Should be: export POP3DSTARTTLS=$POP3_STARTTLS And in gentoo-imapd.rc: export IMAP_STARTTLS=$IMAPDSTARTTLS Should be: export IMAPDSTARTTLS The latter, IMAPDSTARTTLS is in the etc/courier-imap/imapd-ssl correctly, however, in pop3d-ssl, POP3_STARTTLS is not, so I remapped it to POP3DSTARTTLS as courier-imap was expecting, and presto. Both worked with TLS.
Could you please check the latest ebuilds of courier-imap and see if these issues are still presently. They appear to have been fixed already.
IMAPS works for me...
no response and it works for me.