]> git.proxmox.com Git - pmg-api.git/commit
certs: reload postfix to activate new certificate
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 18 Mar 2021 15:14:49 +0000 (16:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Mar 2021 15:31:46 +0000 (16:31 +0100)
commit1ecf138e1729dee908431673b73ac5baf8fd35a9
treef2c72d79bd97f7f52234854fac06c8c0abdc0c36
parent0b0c58e6ee1d25e6dd74daa4dff1f0ddc3eb6d84
certs: reload postfix to activate new certificate

the current logic for reloading postfix only does so if the tls config
parameter changes (after rewriting the config files).
this does not cover the case where a certificate is replaced in a
setup, which already has tls enabled (config stays the same, so
postfix does not get reloaded)

the issue is mostly cosmetic, since postfix does eventually fork off
new smtpd instances, which read the files from disk, but it's
inconvenient, when trying out the new acme integration, and then
running a ssl-check on your PMG from external just to see that the
certificate was not updated.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/API2/Certificates.pm