From fc3a549ef8d4b56d217f3bd4e0fe1703f831dec1 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 6 Jul 2016 14:14:32 +0200 Subject: [PATCH] update postfix run script --- Dockerfile | 3 +++ rootfs/etc/services.d/postfix/run | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 106b096..a85593a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,9 @@ FROM thallian/confd-env:latest RUN apk add --no-cache postfix postfix-ldap +RUN chown root /var/spool/postfix/ +RUN chown root /var/spool/postfix/pid + EXPOSE 25 587 VOLUME /etc/ssl/mail diff --git a/rootfs/etc/services.d/postfix/run b/rootfs/etc/services.d/postfix/run index 68ae5ba..fed966d 100644 --- a/rootfs/etc/services.d/postfix/run +++ b/rootfs/etc/services.d/postfix/run @@ -1,9 +1,4 @@ #!/usr/bin/with-contenv sh -trap "postfix stop" SIGINT -trap "postfix stop" SIGTERM -trap "postfix reload" SIGHUP +exec /usr/lib/postfix/master -d -#postfix start -#sleep 20 -#tail -f /var/log/mail.log