smtp/Dockerfile
2017-12-13 11:24:25 +11:00

26 lines
460 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 && echo relay:SmTpR3l@Y | chpasswd
EXPOSE 25
COPY init /sbin/
# Starting
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]