Using LetsEncrypt with SurgeMail
This pages shows how to use letsencrypt with SurgeMail to create
SSL certificates.
Windows Instructions (Linux below)
- Install SurgeMail 7.3f-40 or later!
- Set g_ssl_per_dom "true" if you want certificates for each
domain. (optional)
- Download and uncompress
https://github.com/PKISharp/win-acme/releases -->
c:\letsencrypt
- Modifying /etc/surgemail.ini and adjust g_webmail_port
"80" and g_webmail_secure_port "443" and restart surgemail
- tellmail letsencrypt
- cd \letsencrypt
- \surgemail\lets.cmd
- In surgemail.ini set g_letsencrypt
"C:\ProgramData\win-acme\httpsacme-v01.api.letsencrypt.org"
- tellmail reload
- tellmail letsencrypt_copy
Test the new certificate. Browse to your secure url:
https://mail.your.domain.name
Linux Instructions
- Stop Apache if its running, and uninstall it (unless you want
it, in which case use apache to generate the certificates and
then copy them to surgemail)
- Install letsencrypt certbot if it isn't on your system:
- Install 'cerbot' instructions are here:
https://certbot.eff.org/
- Modifying /etc/surgemail.ini and adjust g_webmail_port
"80" and g_webmail_secure_port "443" and restart
surgemail.
- Set g_ssl_per_dom "true" if you want certificates for each
domain.
- tellmail letsencrypt
- cd (path to certbot)
- source \surgemail\lets.cmd
- set g_letsencrypt "/etc/letsencrypt/live/"
- tellmail letsencrypt_copy
Test the new certificate. Browse to your secure url:
https://mail.your.domain.name