diff --git a/Dockerfile b/Dockerfile index 1649a4a..d6846d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM interlegis/alpine-postfix ADD ./bin/sendmail-http / ADD start.sh / +VOLUME ["/var/spool/postfix"] + EXPOSE 25 1001 ENTRYPOINT ["/start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh index dabd192..6534eeb 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,5 @@ #!/bin/bash -SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http & +/etc/postfix/postfix-service.sh start & -/opt/monit/bin/monit-start.sh \ No newline at end of file +SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http