2017-07-23 07:56:38 +00:00
|
|
|
# NAME leenooks/smtp
|
|
|
|
# VERSION latest
|
|
|
|
|
2019-06-13 00:27:12 +00:00
|
|
|
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 \
|
2019-09-05 05:15:50 +00:00
|
|
|
&& 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
|
|
|
|
2019-09-05 05:15:50 +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" ]
|