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 \
|
|
|
|
&& cd /etc/mail && make clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
2017-07-23 07:56:38 +00:00
|
|
|
|
2017-12-13 00:24:25 +00:00
|
|
|
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l@Y | chpasswd
|
2017-07-23 07:56:38 +00:00
|
|
|
|
|
|
|
EXPOSE 25
|
|
|
|
|
|
|
|
COPY init /sbin/
|
|
|
|
|
|
|
|
# Starting
|
|
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
|
|
CMD [ "start" ]
|