From 4ab5c64c6b17da8a1b37735a9c0972b667931fb0 Mon Sep 17 00:00:00 2001 From: myve Date: Wed, 5 Mar 2025 02:12:14 +0000 Subject: [PATCH] Update build/run/docker-entrypoint/init.d/30-postfix.sh --- build/run/docker-entrypoint/init.d/30-postfix.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/run/docker-entrypoint/init.d/30-postfix.sh b/build/run/docker-entrypoint/init.d/30-postfix.sh index 8add629..1a685b6 100755 --- a/build/run/docker-entrypoint/init.d/30-postfix.sh +++ b/build/run/docker-entrypoint/init.d/30-postfix.sh @@ -34,11 +34,12 @@ fi addmx=(${MYVEMAIL_DOMAIN}) addmx+=(${MYVEMAIL_ADDMX//,/ }) echo -n | tee /etc/postfix/{helo_access,{whitelisted,blacklisted}_{domains,emails}} >/dev/null -echo ".outbound.protection.outlook.com OK Outlook helos" >/etc/postfix/helo_access + +echo "/\.outbound\.protection\.outlook\.com$/ OK Outlook services" >/etc/postfix/helo_access + for domain in ${addmx[@]} do - echo "${domain} OK Primary and backup mail servers" | tee -a /etc/postfix/helo_access >/dev/null - echo "/^${domain/./\\.}$/ OK Primary and backup mail servers" | tee -a /etc/postfix/whitelisted_domains >/dev/null + echo "/^${domain/./\\.}$/ OK Primary and backup mail servers" | tee -a /etc/postfix/{helo_access,whitelisted_domains} >/dev/null done # Whitelist domains or server IP addresses