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