Skip to content

Commit

Permalink
[postfix] expose logs by linking to STDOUT (jessfraz#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
trilitheus authored and Ryan Gerstenkorn committed Apr 22, 2021
1 parent 23f76d3 commit 172fa70
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions postfix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ COPY service /etc/service
COPY runit_bootstrap /usr/sbin/runit_bootstrap
COPY rsyslog.conf /etc/rsyslog.conf

RUN ln -sf /dev/stdout /var/log/mail.log

STOPSIGNAL SIGKILL

ENTRYPOINT ["/usr/sbin/runit_bootstrap"]
1 change: 0 additions & 1 deletion postfix/service/postfix/run
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ if [[ ! -z "$SASL_AUTH" ]]; then
fi

/usr/lib/postfix/master -c /etc/postfix -d 2>&1
tail -F /var/log/mail.log
Empty file.
Empty file.

0 comments on commit 172fa70

Please sign in to comment.