From 37d6871f1bcd5356615253a435430bddd319d2b8 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Tue, 9 Feb 2016 13:03:00 +0100 Subject: [PATCH] Fixed combined.pem --- start-mailserver.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/start-mailserver.sh b/start-mailserver.sh index 4da87c74..20766af5 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -110,8 +110,6 @@ if [ ! -f "/etc/opendmarc/ignore.hosts" ]; then echo "localhost" >> /etc/opendmarc/ignore.hosts fi - - # SSL Configuration case $DMS_SSL in "letsencrypt" ) @@ -122,7 +120,7 @@ case $DMS_SSL in sed -i -r 's/smtpd_tls_key_file=\/etc\/ssl\/private\/ssl-cert-snakeoil.key/smtpd_tls_key_file=\/etc\/letsencrypt\/live\/'$(hostname)'\/privkey.pem/g' /etc/postfix/main.cf # Courier configuration - cat "/etc/letsencrypt/live/$(hostname)/privkey.pem" "/etc/letsencrypt/live/$(hostname)/cert.pem" > "/etc/letsencrypt/live/$(hostname)/combined.pem" + cat "/etc/letsencrypt/live/$(hostname)/cert.pem" "/etc/letsencrypt/live/$(hostname)/chain.pem" "/etc/letsencrypt/live/$(hostname)/privkey.pem" > "/etc/letsencrypt/live/$(hostname)/combined.pem" sed -i -r 's/TLS_CERTFILE=\/etc\/courier\/imapd.pem/TLS_CERTFILE=\/etc\/letsencrypt\/live\/'$(hostname)'\/combined.pem/g' /etc/courier/imapd-ssl # POP3 courier configuration