Просмотр исходного кода

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

andryyy 5 лет назад
Родитель
Сommit
06df5f3017
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      data/Dockerfiles/postfix/postfix.sh

+ 5 - 0
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