19 lines
386 B
Docker
19 lines
386 B
Docker
# NAME leenooks/smtp
|
|
# VERSION latest
|
|
|
|
FROM debian:stretch
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install sendmail sasl2-bin milter-greylist -yyq \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin && echo relay:SmTpR3l@Y | chpasswd
|
|
|
|
EXPOSE 25
|
|
|
|
COPY init /sbin/
|
|
|
|
# Starting
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
CMD [ "start" ]
|