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
|
|
|
|
|
|
|
|
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" ]
|