From 1976cf8400beab9dc0bc4e68ffa645929d8ffa53 Mon Sep 17 00:00:00 2001 From: Juan Luis Baptiste Date: Wed, 3 Feb 2021 15:26:32 -0500 Subject: [PATCH] Fix issue #45: Update alpine image to v3.13, had to remove cyrus-sasl-plain package as is not present on that version and switch sasl map from hash to lmdb. --- Dockerfile | 4 ++-- run.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e27d457..cc9e1d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ #Dockerfile for a Postfix email relay service -FROM alpine:3.12 +FROM alpine:3.13 MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com RUN apk update && \ - apk add bash gawk cyrus-sasl cyrus-sasl-plain cyrus-sasl-login cyrus-sasl-crammd5 mailx \ + apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \ perl supervisor postfix rsyslog && \ rm -rf /var/cache/apk/* && \ mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \ diff --git a/run.sh b/run.sh index fa4e8b9..659cb27 100644 --- a/run.sh +++ b/run.sh @@ -34,7 +34,7 @@ add_config_value "myorigin" '$mydomain' add_config_value "relayhost" "[${SMTP_SERVER}]:${SMTP_PORT}" add_config_value "smtp_use_tls" "yes" add_config_value "smtp_sasl_auth_enable" "yes" -add_config_value "smtp_sasl_password_maps" "hash:/etc/postfix/sasl_passwd" +add_config_value "smtp_sasl_password_maps" "lmdb:/etc/postfix/sasl_passwd" add_config_value "smtp_sasl_security_options" "noanonymous" add_config_value "always_add_missing_headers" "${ALWAYS_ADD_MISSING_HEADERS:-no}"