Skip to content

Automated Let's Encrypt certificate installation for Courier IMAP daemon

License

Notifications You must be signed in to change notification settings

nicolas-dutertry/letsimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's IMAP

Automated Let's Encrypt certificate installation for Courier IMAP daemon.

If you deploy a Let's Encrypt certificate with Certbot to your web server and want to use it with Courier IMAP daemon, this script will automatically manage it for you.

Every time the Let's Encrypt certificate is renewed, Let's IMAP will recreate the corresponding file for Courier IMAP.

Installation

Courier IMAP configuration

In file /etc/courier/imapd-ssl set the following parameters:

TLS_CERTFILE=/etc/letsencrypt/live/HOSTNAME/imapd.pem
TLS_TRUSTCERTS=/etc/letsencrypt/live/HOSTNAME/fullchain.pem

where you must replace HOSTNAME with the public host name of your server.

Don't forget to reload Courier IMAP configuration.

Install script

Clone this git repository and run the install script as root:

# git clone https://github.com/nicolas-dutertry/letsimap.git
# cd letsimap
# ./install

Certificate generation

The install script generates the certificate for Courier IMAP in the file /etc/letsencrypt/live/HOSTNAME/imapd.pem.

Every time the Let's Encrypt certificate will be renewed, imapd.pem will be automatically regenerated.

About

Automated Let's Encrypt certificate installation for Courier IMAP daemon

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages