[Postfix] Added custom_postscreen_whitelist.cidr for a custom Postscreen wl, fixes #3313

master
andryyy 2020-02-06 08:28:48 +01:00
parent 82c094c77c
commit 06df5f3017
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,11 @@ if [ ! -f /opt/postfix/conf/custom_transport.pcre ]; then
touch /opt/postfix/conf/custom_transport.pcre touch /opt/postfix/conf/custom_transport.pcre
fi 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 # Fix Postfix permissions
chown -R root:postfix /opt/postfix/conf/sql/ /opt/postfix/conf/custom_transport.pcre 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 chmod 640 /opt/postfix/conf/sql/*.cf /opt/postfix/conf/custom_transport.pcre