forked from wader/postfix-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (28 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:jessie-slim
MAINTAINER Mattias Wadman [email protected]
RUN \
apt-get update && \
apt-get -y install \
postfix \
opendkim \
opendkim-tools \
rsyslog && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Default config:
# Open relay, trust docker links for firewalling.
# Try to use TLS when sending to other smtp servers.
# No TLS for connecting clients, trust docker network to be safe
ENV \
POSTFIX_myhostname=hostname \
POSTFIX_mydestination=localhost \
POSTFIX_mynetworks=0.0.0.0/0 \
POSTFIX_smtp_tls_security_level=may \
POSTFIX_smtpd_tls_security_level=none
COPY rsyslog.conf /etc/rsyslog.conf
COPY opendkim.conf /etc/opendkim.conf
RUN mkdir -p /etc/opendkim/keys
COPY run /root/
VOLUME ["/var/lib/postfix", "/var/mail", "/var/spool/postfix", "/etc/opendkim/keys"]
EXPOSE 25
CMD ["/root/run"]