Fix SMTP_PORT, and container startup
continuous-integration/drone/push Build is failing Details

This commit is contained in:
3wc 2022-03-31 12:14:25 +02:00
parent dcb3b410ff
commit 76b698bc30
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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