From c59cc49baf4e1dceac4e09a69e9c42bfae4058ac Mon Sep 17 00:00:00 2001 From: fcojean Date: Thu, 17 Sep 2015 16:05:02 +0200 Subject: [PATCH 1/2] Set opendkim permission on domainkeys directory to avoid dkim to cancel email sending. --- assets/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/install.sh b/assets/install.sh index 0b2aaff..66dca73 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -126,5 +126,7 @@ EOF cat >> /etc/opendkim/SigningTable < Date: Fri, 18 Sep 2015 16:58:20 +0200 Subject: [PATCH 2/2] Add DMARC support. --- Dockerfile | 2 +- assets/install.sh | 36 ++++++++++++++++++++++++++++++++++-- build.sh | 2 +- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5395bf5..ceda6d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update # Start editing # Install package here for cache -RUN apt-get -y install supervisor postfix sasl2-bin opendkim opendkim-tools +RUN apt-get -y install supervisor postfix sasl2-bin opendkim opendkim-tools opendmarc # Add files ADD assets/install.sh /opt/install.sh diff --git a/assets/install.sh b/assets/install.sh index 66dca73..2f52953 100755 --- a/assets/install.sh +++ b/assets/install.sh @@ -83,8 +83,8 @@ EOF # /etc/postfix/main.cf postconf -e milter_protocol=2 postconf -e milter_default_action=accept -postconf -e smtpd_milters=inet:localhost:12301 -postconf -e non_smtpd_milters=inet:localhost:12301 +postconf -e smtpd_milters=inet:localhost:12301,inet:localhost:12302 +postconf -e non_smtpd_milters=inet:localhost:12301,inet:localhost:12302 cat >> /etc/opendkim.conf <> /etc/supervisor/conf.d/supervisord.conf <> /etc/opendmarc.conf <> /etc/opendmarc/ignore.hosts <> /etc/default/opendmarc <