forked from juanluisbaptiste/docker-postfix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Dockerfile for a Postfix email relay service
FROM centos:7
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
RUN yum install -y epel-release && yum update -y && \
yum install -y cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 mailx \
perl supervisor postfix rsyslog \
&& rm -rf /var/cache/yum/* \
&& yum clean all
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
COPY etc/ /etc/
COPY run.sh /
RUN chmod +x /run.sh
RUN newaliases
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]