[MODERATOR EDIT]: See https://forum.proxmox.com/threads/how-to-lets-encrypt-and-pmg.41493/ instead!
A tiny recipe to use letsencrypt certificates with Proxmox Mail Gateway 5.0
Previously update / dist-upgrade your host and create a backup of /etc folder
Install letsencrypt certbot
Install a new certificate
Jump to new certificate and replace selfsigned pmg
Restart service
login in a new tab, don't reload.
[EDIT]
This line was a typo: cp privkey.pem /etc/pmg/pmg-authkey.key
A tiny recipe to use letsencrypt certificates with Proxmox Mail Gateway 5.0
Previously update / dist-upgrade your host and create a backup of /etc folder
Install letsencrypt certbot
Code:
apt-get install -y certbot
Code:
certbot --authenticator standalone certonly -d $(hostname -f) --agree-tos
Code:
pushd /etc/letsencrypt/live/$(hostname -f)
cat privkey.pem cert.pem > /etc/pmg/pmg-api.pem
cp fullchain.pem /etc/pmg/pmg-tls.pem
Code:
service pmgproxy restart
[EDIT]
This line was a typo:
Last edited: