Optional SMTP relay

This commit is contained in:
3wc
2020-09-27 21:27:26 +02:00
parent 349feac543
commit 5f2697c0c9
4 changed files with 49 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
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
# Upstream ENTRYPOINT
# https://github.com/docker-library/wordpress/blob/master/php7.4/apache/Dockerfile#L120
/usr/local/bin/docker-entrypoint.sh apache2-foreground "$@"