From c2475afab5737737e694a071f7c2b22b34986240 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Fri, 21 Feb 2025 20:19:24 +0100 Subject: [PATCH] Fix (START)TLS settings from container environment variables --- start.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 3a8e28b..ef0d871 100755 --- a/start.sh +++ b/start.sh @@ -68,6 +68,13 @@ if [[ -n "$LSMB_HAVE_DEPRECATED" ]]; then fi if [[ ! -f ./local/conf/ledgersmb.yaml ]]; then + if [[ "x$LSMB_MAIL_SMTPTLS" == "xyes" ]]; then + tls_mode=starttls + elif [[ "x$LSMB_MAIL_SMTPTLS" == "xraw" ]]; then + tls_mode=ssl + else + tls_mode=none + fi cat <./local/conf/ledgersmb.yaml paths: \$class: Beam::Wire @@ -84,7 +91,7 @@ db: mail: transport: \$class: Email::Sender::Transport::SMTP - tls: $LSMB_MAIL_SMTPTLS + ssl: $tls_mode miscellaneous: \$class: Beam::Wire