2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-25 06:44:58 +02:00
docker/.examples/dockerfiles/smtp/fpm-alpine/Dockerfile

18 lines
584 B
Docker

FROM friendica/server: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 \
ssmtp \
; \
# disable the current mailhub
sed -i "s|mailhub=|#mailhub= |g" /etc/ssmtp/ssmtp.conf; \
# enable the new mailhub
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)
ENV SMTP_TYPE simple