Renew SSL certificates for courier-imap on CentOS

This describes how to renew the courier-imap SSL certificates. This is needed when e.g. when the certificates are expired.

  • Delete the old, existing certificates.
  • rm -f /usr/share/courier-imap/imapd.pem
    rm -f /usr/share/courier-imap/pop3d.pem

  • Edit the templates that contains the details for the certificates (hostname must match the hostname of your server and the emailaddress should match the postmaster’s email address:
  • vim /etc/courier-imap/imapd.cnf
    vim /etc/courier-imap/pop3d.cnf

  • Create new certificates:
  • mkimapdcert

  • Restart the courier-imap services:
  • /etc/init.d/courier-imap restart

Leave a Reply

}) _0- O-) ;) ;( :{ :o :Y :X :P :N :D :@ :? :9~ :) :(