smtp/Dockerfile

21 lines
510 B
Docker
Raw Normal View History

2017-07-23 07:56:38 +00:00
# NAME leenooks/smtp
# VERSION latest
FROM debian:stretch-slim
2017-07-23 07:56:38 +00:00
2018-01-31 11:56:02 +00:00
RUN apt-get update \
2018-02-02 06:18:04 +00:00
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
&& sed -ie 's/mech_list: EXTERNAL DIGEST-MD5 CRAM-MD5/mech_list:/' /etc/mail/sasl/Sendmail.conf.2 \
2018-02-02 06:18:04 +00:00
&& cd /etc/mail && make clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*
2017-07-23 07:56:38 +00:00
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l2Y | chpasswd
2017-07-23 07:56:38 +00:00
EXPOSE 25
COPY init /sbin/
# Starting
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]