2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-13 04:43:44 +01:00

Bugfix SMTP Dockerfile for fpm-alpine

- Typo & forgot ENV variable
This commit is contained in:
Philipp Holzer 2018-05-20 16:18:55 +02:00
parent 0826aaefa9
commit 2125efd5f6
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6

View file

@ -1,5 +1,8 @@
FROM friendica:develop-fpm-alpine
# at least you HAVE to set one SMTP_HOST (normally something like mail.example.org)
ENV SMTP_HOST mail
RUN set -ex; \
\
apk add --no-cache \
@ -8,7 +11,7 @@ RUN set -ex; \
# disable the current mailhub
sed -i "s|mailhub=|#mailhub= |g" /etc/ssmtp/ssmtp.conf; \
# enable the new mailhub
echo "mailhub=${:-localhost}" >> /etc/ssmtp/ssmtp.conf;SMTP_HOST
echo "mailhub=${SMTP_HOST:-localhost}" >> /etc/ssmtp/ssmtp.conf;
# simple = using an smtp without any credentials (mostly in local networks)
# custom = you need to set host, port, auth_options, authinfo (e.g. for GMX support)