Skip to content

Commit

Permalink
Merge branch '15-disable-tls' into 'master'
Browse files Browse the repository at this point in the history
Disable TLS if no certificate and key is provided (as by default exim4...

See merge request ix.ai/smtp!16
  • Loading branch information
tlex committed Mar 18, 2023
2 parents ad88cd2 + 7e375e5 commit d2a03d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ if [ "$KEY_PATH" ] && [ "$CERTIFICATE_PATH" ]; then
chgrp Debian-exim /etc/exim4/exim.crt
chmod 640 /etc/exim4/exim.key
chmod 640 /etc/exim4/exim.crt
else
echo "MAIN_TLS_ENABLE = no" >> /etc/exim4/exim4.conf.localmacros
echo "MAIN_TLS_ADVERTISE_HOSTS = !*" >> /etc/exim4/exim4.conf.localmacros
fi

opts=(
Expand Down

0 comments on commit d2a03d8

Please sign in to comment.