30 lines
506 B
Docker
30 lines
506 B
Docker
# NAME leenooks/smtp
|
|
# VERSION latest
|
|
# BUILD docker build -t="leenooks/smtp" .
|
|
|
|
FROM registry.leenooks.net/leenooks/base:7
|
|
|
|
RUN yum -y install epel-release && yum clean all
|
|
|
|
# EPEL & Leenooks packages
|
|
RUN yum -y install \
|
|
make \
|
|
m4 \
|
|
sendmail \
|
|
sendmail-cf \
|
|
ln-mail-server \
|
|
milter-greylist \
|
|
&& yum clean all
|
|
|
|
# ln-mail-client \
|
|
|
|
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" ]
|