From 9f6f0fb53c257bb6732f037170bc11af1bf20d4f Mon Sep 17 00:00:00 2001 From: Quentin Date: Tue, 22 Dec 2020 16:40:36 +0100 Subject: Migrate Nomad job for emails --- app/build/postfix/Dockerfile | 4 +++- app/build/postfix/entrypoint.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'app/build/postfix') diff --git a/app/build/postfix/Dockerfile b/app/build/postfix/Dockerfile index 9e4c067..0c74fdc 100644 --- a/app/build/postfix/Dockerfile +++ b/app/build/postfix/Dockerfile @@ -1,8 +1,10 @@ FROM amd64/debian:buster +ARG VERSION + RUN apt-get update && \ apt-get install -y \ - postfix \ + postfix=$VERSION \ postfix-ldap COPY entrypoint.sh /usr/local/bin/entrypoint diff --git a/app/build/postfix/entrypoint.sh b/app/build/postfix/entrypoint.sh index c7ace3d..fcf1a66 100755 --- a/app/build/postfix/entrypoint.sh +++ b/app/build/postfix/entrypoint.sh @@ -26,5 +26,6 @@ for file in $(ls /etc/postfix-conf); do done echo ${MAILNAME} > /etc/mailname +postmap /etc/postfix/transport exec "$@" -- cgit v1.2.3