smtp/Dockerfile

26 lines
460 B
Docker
Raw Normal View History

2017-07-23 07:56:38 +00:00
# NAME leenooks/smtp
# VERSION latest
# BUILD docker build -t="leenooks/smtp" .
2017-07-23 09:27:12 +00:00
FROM registry.leenooks.net/leenooks/base:7.E
2017-07-23 07:56:38 +00:00
# EPEL & Leenooks packages
RUN yum -y install \
make \
m4 \
sendmail \
sendmail-cf \
ln-mail-server \
milter-greylist \
&& yum clean all
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" ]