aboutsummaryrefslogtreecommitdiff
path: root/app/build/postfix
diff options
context:
space:
mode:
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 "$@"