2018-05-22 19:51:41 +02:00
|
|
|
FROM friendica/server:fpm-alpine
|
2018-05-20 15:44:03 +02:00
|
|
|
|
2018-05-20 16:18:55 +02:00
|
|
|
# at least you HAVE to set one SMTP_HOST (normally something like mail.example.org)
|
|
|
|
ENV SMTP_HOST mail
|
|
|
|
|
2018-05-20 15:44:03 +02:00
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apk add --no-cache \
|
|
|
|
ssmtp \
|
|
|
|
; \
|
|
|
|
# disable the current mailhub
|
|
|
|
sed -i "s|mailhub=|#mailhub= |g" /etc/ssmtp/ssmtp.conf; \
|
|
|
|
# enable the new mailhub
|
2018-05-20 16:18:55 +02:00
|
|
|
echo "mailhub=${SMTP_HOST:-localhost}" >> /etc/ssmtp/ssmtp.conf;
|
2018-05-20 15:44:03 +02:00
|
|
|
|
|
|
|
# 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)
|
|
|
|
ENV SMTP_TYPE simple
|