From 6fcd061f71907282ca4c747c58e01bef7d0988fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lo=C5=A1=C5=A5=C3=A1k?= Date: Sun, 29 Mar 2026 09:02:13 +0200 Subject: [PATCH] Fixed entrypoint --- entrypoint.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d585478..10ac758 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -77,33 +77,39 @@ cat > /etc/postfix/master.cf <<'EOF' EOF # SMTP configuration. -if [ "${POSTFIX_SMTP_ENABLED}" = "yes" ]; then - cat >> /etc/postfix/master.cf <<'EOF' +case "${POSTFIX_SMTP_ENABLED}" in + true|yes|on|1) + cat >> /etc/postfix/master.cf <<'EOF' smtp inet n - y - - smtpd -o syslog_name=postfix/smtp EOF -fi + ;; +esac # Submission configuration. -if [ "${POSTFIX_SUBMISSION_ENABLED}" = "yes" ]; then - cat >> /etc/postfix/master.cf <> /etc/postfix/master.cf <> /etc/postfix/master.cf <> /etc/postfix/master.cf <> /etc/postfix/master.cf <