smtp/Dockerfile

19 lines
386 B
Docker
Raw Normal View History

2017-07-23 07:56:38 +00:00
# NAME leenooks/smtp
# VERSION latest
2018-01-31 11:56:02 +00:00
FROM debian:stretch
2017-07-23 07:56:38 +00:00
2018-01-31 11:56:02 +00:00
RUN apt-get update \
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
&& 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" ]