update postfix run script

This commit is contained in:
Sebastian Hugentobler 2016-07-06 12:44:08 +02:00
parent c2856011cb
commit 02d52398dd
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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