aboutsummaryrefslogtreecommitdiff
path: root/app/build/postfix
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-22 16:40:36 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-22 16:40:36 +0100
commit9f6f0fb53c257bb6732f037170bc11af1bf20d4f (patch)
tree50c8f4dc2234969575d01c0db47ea266dba0a854 /app/build/postfix
parenta2adaa2101d2b82d457c1ef6e9e25acb9022b9fc (diff)
downloadinfrastructure-9f6f0fb53c257bb6732f037170bc11af1bf20d4f.tar.gz
infrastructure-9f6f0fb53c257bb6732f037170bc11af1bf20d4f.zip
Migrate Nomad job for emails
Diffstat (limited to 'app/build/postfix')
-rw-r--r--app/build/postfix/Dockerfile4
-rwxr-xr-xapp/build/postfix/entrypoint.sh1
2 files changed, 4 insertions, 1 deletions
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 "$@"