diff --git a/Dockerfile b/Dockerfile index b18e165..106b096 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM thallian/confd-env:latest -RUN apk add --no-cache postfix postfix-ldap bash +RUN apk add --no-cache postfix postfix-ldap EXPOSE 25 587 diff --git a/rootfs/etc/services.d/postfix/run b/rootfs/etc/services.d/postfix/run index e4582f6..c64b342 100644 --- a/rootfs/etc/services.d/postfix/run +++ b/rootfs/etc/services.d/postfix/run @@ -1,8 +1,9 @@ -#!/usr/bin/with-contenv bash +#!/usr/bin/with-contenv sh trap "postfix stop" SIGINT trap "postfix stop" SIGTERM trap "postfix reload" SIGHUP postfix start -sleep infinity +sleep 20 +tail -f /var/log/mail.log