This commit is contained in:
Ian Carson 2017-09-26 13:25:17 +00:00 committed by GitHub
commit 9702a26d97
1 changed files with 7 additions and 0 deletions

View File

@ -776,6 +776,13 @@ function _setup_ssl() {
sed -i -e 's~ssl_cert = </etc/dovecot/dovecot\.pem~ssl_cert = </etc/postfix/ssl/cert~g' /etc/dovecot/conf.d/10-ssl.conf
sed -i -e 's~ssl_key = </etc/dovecot/private/dovecot\.pem~ssl_key = </etc/postfix/ssl/key~g' /etc/dovecot/conf.d/10-ssl.conf
if [ -n "$SSL_BUNDLE_PATH" ]; then
cp "$SSL_BUNDLE_PATH" /etc/postfix/ssl/bundle
chmod 600 /etc/postfix/ssl/bundle
sed -i -r 's~#smtpd_tls_CAfile=~smtpd_tls_CAfile=/etc/postfix/ssl/bundle~g' /etc/postfix/main.cf
fi
notify 'inf' "SSL configured with 'Manual' certificates"
fi
;;