From 06df5f301723e9d7151f483355dbeb5024699be3 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 6 Feb 2020 08:28:48 +0100 Subject: [PATCH] [Postfix] Added custom_postscreen_whitelist.cidr for a custom Postscreen wl, fixes #3313 --- data/Dockerfiles/postfix/postfix.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/Dockerfiles/postfix/postfix.sh b/data/Dockerfiles/postfix/postfix.sh index d55d8f47..ac96c0ce 100755 --- a/data/Dockerfiles/postfix/postfix.sh +++ b/data/Dockerfiles/postfix/postfix.sh @@ -323,6 +323,11 @@ if [ ! -f /opt/postfix/conf/custom_transport.pcre ]; then touch /opt/postfix/conf/custom_transport.pcre fi +if [[ ! -f /opt/postfix/conf/custom_postscreen_whitelist.cidr ]]; then + echo "Creating dummy custom_postscreen_whitelist.cidr" + echo '# Autogenerated by mailcow' > /opt/postfix/conf/custom_postscreen_whitelist.cidr +fi + # Fix Postfix permissions chown -R root:postfix /opt/postfix/conf/sql/ /opt/postfix/conf/custom_transport.pcre chmod 640 /opt/postfix/conf/sql/*.cf /opt/postfix/conf/custom_transport.pcre