2015-04-20 05:07:23 +00:00
|
|
|
#Dockerfile for a Postfix email relay service
|
2019-10-17 01:13:38 +00:00
|
|
|
FROM centos:7
|
2015-04-20 05:07:23 +00:00
|
|
|
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
|
|
|
|
|
|
|
|
RUN yum install -y epel-release && yum update -y && \
|
2018-05-09 05:02:59 +00:00
|
|
|
yum install -y cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 mailx \
|
2018-05-24 03:32:10 +00:00
|
|
|
perl supervisor postfix rsyslog \
|
|
|
|
&& rm -rf /var/cache/yum/* \
|
|
|
|
&& yum clean all
|
2015-04-20 05:07:23 +00:00
|
|
|
RUN sed -i -e "s/^nodaemon=false/nodaemon=true/" /etc/supervisord.conf
|
|
|
|
RUN sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
|
2018-05-09 05:02:59 +00:00
|
|
|
|
|
|
|
COPY etc/*.conf /etc/
|
|
|
|
COPY etc/rsyslog.d/* /etc/rsyslog.d
|
2015-04-20 05:07:23 +00:00
|
|
|
COPY run.sh /
|
|
|
|
RUN chmod +x /run.sh
|
2018-05-09 05:02:59 +00:00
|
|
|
COPY etc/supervisord.d/*.ini /etc/supervisord.d/
|
2015-05-12 07:20:38 +00:00
|
|
|
RUN newaliases
|
2015-04-20 05:07:23 +00:00
|
|
|
|
|
|
|
EXPOSE 25
|
|
|
|
#ENTRYPOINT ["/run.sh"]
|
|
|
|
CMD ["/run.sh"]
|