Courier-imap

If you see the following error in your /var/log/maillog or syslog:

couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

this means you should edit the

TLS_PROTOCOL=SSL3

variable in your imapd configuration file. On FreeBSD, this is found in:

/usr/local/etc/courier-imap

simply changing it to

TLS_PROTOCOL=SSL23

should work, as it will also allow SSL version 2 as well as 3. Alternativey you can try TLS1.