Browse Source

configure logging to stdout during startup to effect mounted configs

Fabian Peter Hammerle 4 years ago
parent
commit
cd70620bb5
2 changed files with 10 additions and 2 deletions
  1. 2 2
      Dockerfile
  2. 8 0
      postfix.sh

+ 2 - 2
Dockerfile

@@ -4,8 +4,8 @@ RUN apk add postfix
 
 # http://www.postfix.org/MAILLOG_README.html
 RUN postconf -F | grep -E '^postlog/unix-dgram/service = postlog$' \
-    && postconf -evv maillog_file=/dev/stdout \
     && postfix check
 
 EXPOSE 25/tcp
-CMD ["postfix", "start-fg"]
+COPY postfix.sh /
+CMD ["/postfix.sh"]

+ 8 - 0
postfix.sh

@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -ex
+
+# http://www.postfix.org/MAILLOG_README.html
+postconf -e maillog_file=/dev/stdout
+
+exec postfix start-fg