# apt-get install courier-imap-ssl Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: courier-authdaemon courier-authlib courier-authlib-userdb courier-base courier-imap courier-ssl libfam0 libltdl7 Suggested packages: courier-doc imap-client fam The following NEW packages will be installed: courier-authdaemon courier-authlib courier-authlib-userdb courier-base courier-imap courier-imap-ssl courier-ssl libfam0 libltdl7 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 1,416 kB of archives. After this operation, 3,596 kB of additional disk space will be used. Do you want to continue [Y/n]? y...
On the ncurses menu select configuration directories instead of one configuration file
...
A self signed X.509 certificate is created to be used by the server
The private key is at /usr/lib/courier/imapd.pem
...
On /etc/courier/imapd-ssl set :
SSLADDRESS = 192.0.2.44
to the IP address you want imapd-ssl to bind to.
Restart the IMAP SSL Daemon
# /etc/init.d/courier-imap-ssl restart Stopping Courier IMAP-SSL server: imapd-ssl. Starting Courier IMAP-SSL server: imapd-ssl. #
Stop the IMAP Daemon
# /etc/init.d/courier-imap stop Stopping Courier IMAP server: imapd. #
We are not going to be using the IMAP Daemon , let 's disable it from starting when the system starts.
# ls -l /etc/rc2.d/S* |grep imap lrwxrwxrwx 1 root root 22 2011-08-04 15:07 /etc/rc2.d/S20courier-imap -> ../init.d/courier-imap lrwxrwxrwx 1 root root 26 2011-08-04 16:41 /etc/rc2.d/S20courier-imap-ssl -> ../init.d/courier-imap-ssl # update-rc.d -f courier-imap remove Removing any system startup links for /etc/init.d/courier-imap ... /etc/rc0.d/K20courier-imap /etc/rc1.d/K20courier-imap /etc/rc2.d/S20courier-imap /etc/rc3.d/S20courier-imap /etc/rc4.d/S20courier-imap /etc/rc5.d/S20courier-imap /etc/rc6.d/K20courier-imap #
Cool, now the IMAP SSL DAEMON is listening on port 993 and your email client should connect fine when set to use:
SSL/TLS for the communication encryption
and Normal password for the Authentication Method.
install a courier imap ssl enabled daemon on debian based systems