From e0426cc685a24157bf72c8812e60e41460878be3 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 27 Feb 2018 14:45:31 +1100 Subject: [PATCH] Reworked ssmtp integration, need to use fastcgi_param PHP_ADMIN_VALUE "sendmail_path=/usr/sbin/sendmail -i -t"; in nginx config, and hostname: for php container --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cb200a9..a80a4c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM wordpress:4.9.2-fpm RUN apt-get update \ && apt-get install -y openssh-server ssmtp \ && useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp \ - && sed -i -e 's/^mailhub=mail$/mailhub=smtp/' -e "s/${HOSTNAME}//" /etc/ssmtp/ssmtp.conf + && sed -i -e 's/^mailhub=mail$/mailhub=smtp/' -e "s/^hostname=/#hostname=/" -e 's/#FromLineOverride=YES/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf COPY sshd_config.patch /tmp RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch