[Postfix] Do not create a TLS SNI map when SKIP_LETS_ENCRYPT=y
This commit is contained in:
parent
79f8a3c2b5
commit
ea98ac6442
|
@ -25,6 +25,9 @@ EOF
|
||||||
newaliases;
|
newaliases;
|
||||||
|
|
||||||
# create sni configuration
|
# create sni configuration
|
||||||
|
if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
|
echo -n "" > /opt/postfix/conf/sni.map
|
||||||
|
else
|
||||||
echo -n "" > /opt/postfix/conf/sni.map;
|
echo -n "" > /opt/postfix/conf/sni.map;
|
||||||
for cert_dir in /etc/ssl/mail/*/ ; do
|
for cert_dir in /etc/ssl/mail/*/ ; do
|
||||||
if [[ ! -f ${cert_dir}domains ]] || [[ ! -f ${cert_dir}cert.pem ]] || [[ ! -f ${cert_dir}key.pem ]]; then
|
if [[ ! -f ${cert_dir}domains ]] || [[ ! -f ${cert_dir}cert.pem ]] || [[ ! -f ${cert_dir}key.pem ]]; then
|
||||||
|
@ -36,6 +39,7 @@ for cert_dir in /etc/ssl/mail/*/ ; do
|
||||||
echo "" >> /opt/postfix/conf/sni.map;
|
echo "" >> /opt/postfix/conf/sni.map;
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
postmap -F hash:/opt/postfix/conf/sni.map;
|
postmap -F hash:/opt/postfix/conf/sni.map;
|
||||||
|
|
||||||
cat <<EOF > /opt/postfix/conf/sql/mysql_relay_ne.cf
|
cat <<EOF > /opt/postfix/conf/sql/mysql_relay_ne.cf
|
||||||
|
|
|
@ -255,7 +255,7 @@ services:
|
||||||
- dovecot
|
- dovecot
|
||||||
|
|
||||||
postfix-mailcow:
|
postfix-mailcow:
|
||||||
image: mailcow/postfix:1.58
|
image: mailcow/postfix:1.59
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql-mailcow
|
- mysql-mailcow
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue