courier imap/pop3 with ssl

Posted: 2006-07-14

I was using courier-imap and courier-pop until today. I've just installed the -ssl versions of both.

At install they both create a certificate for localhost based in New York. This doesn't work unless it really is localhost.

In /etc/courier there are imapd.pem, imapd.cnf, pop3d.pem and pop3d.cnf

  1. Delete the .pem files
  2. Edit the .cnf files - make sure that you set CN to be the hostname or the mail server
  3. Run mkimapdcert
  4. Run mkpop3dcert
  5. Restart the services

I left the non-ssl IMAP running but only for 127.0.0.1 for squirrelmail.