Enable selecting the TLS Certificate

This commit is contained in:
2022-01-23 18:09:27 -06:00
parent 2e8186b540
commit d3988b8431
6 changed files with 34 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Copy TLS Certificates for Postfix
[Service]
Type=oneshot
ExecStartPre=mkdir -p /etc/postfix/certificates
ExecStart=/bin/bash -lc 'cp /etc/httpd/md/domains/{{ postfix_vhost }}/*.pem /etc/postfix/certificates/'
ExecStartPost=chown -R root:root /etc/postfix/certificates
[Install]
WantedBy=postfix.service

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Copy TLS Certificates for Postfix
[Timer]
OnUnitActiveSec=5min
[Install]
WantedBy=postfix.service