smtp/Dockerfile
2017-07-23 19:27:12 +10:00

26 lines
438 B
Docker

# NAME leenooks/smtp
# VERSION latest
# BUILD docker build -t="leenooks/smtp" .
FROM registry.leenooks.net/leenooks/base:7.E
# EPEL & Leenooks packages
RUN yum -y install \
make \
m4 \
sendmail \
sendmail-cf \
ln-mail-server \
milter-greylist \
&& yum clean all
RUN useradd -rc "HUB Mail Relay" -M relay -NG mail -s /sbin/nologin -p SmTpR3l@Y
EXPOSE 25
COPY init /sbin/
# Starting
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]