From dc92680d32bc7f3d9a0cc442dbe5a1d05b59bf49 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 30 Sep 2025 11:24:33 +0700 Subject: [PATCH] Add MAILER_TLS opt --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index f70524a..903c914 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh [ -n "${MAILER_HOST}" ] && sed -r "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf +[ -n "${MAILER_TLS}" ] && { grep "^UseTLS=YES$" || echo "UseTLS=YES" >> ~/ssmtp.conf; } && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf [ -n "${MAILER_REWRITEDOMAIN}" ] && sed -r "/^#?rewriteDomain=/s/.*/rewriteDomain=${MAILER_REWRITEDOMAIN}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf exec /sbin/tini -- $@