From 76b698bc3046d7c242753a9442248f419a8f1ffa Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 31 Mar 2022 12:14:25 +0200 Subject: [PATCH] Fix SMTP_PORT, and container startup --- compose.mailrelay.yml | 2 +- entrypoint.mailrelay.sh.tmpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compose.mailrelay.yml b/compose.mailrelay.yml index 8d89168..473b0ea 100644 --- a/compose.mailrelay.yml +++ b/compose.mailrelay.yml @@ -6,7 +6,7 @@ services: entrypoint: /docker-entrypoint.mailrelay.sh environment: - SMTP_HOST=${SMTP_HOST} - - SMTP_PORT=${SMTP_PORT} + - SMTP_PORT=${SMTP_PORT:-25} - MAIL_FROM=${MAIL_FROM} configs: - source: mstmp_conf diff --git a/entrypoint.mailrelay.sh.tmpl b/entrypoint.mailrelay.sh.tmpl index c568880..b0b5dcc 100644 --- a/entrypoint.mailrelay.sh.tmpl +++ b/entrypoint.mailrelay.sh.tmpl @@ -3,3 +3,5 @@ apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y msmtp && rm -rf /var/lib/apt/lists/* echo "sendmail_path = /usr/bin/msmtp -t -i" > /usr/local/etc/php/conf.d/sendmail.ini + +/docker-entrypoint.sh