From e751e044b79d649d9f7e60852b7f08eaae22733b Mon Sep 17 00:00:00 2001 From: myve Date: Mon, 10 Mar 2025 13:34:00 +0000 Subject: [PATCH] Update build/run/docker-entrypoint/init.d/30-postfix.sh --- build/run/docker-entrypoint/init.d/30-postfix.sh | 6 +++--- 1 file changed, 3 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 3f90021..8dac88a 100755 --- a/build/run/docker-entrypoint/init.d/30-postfix.sh +++ b/build/run/docker-entrypoint/init.d/30-postfix.sh @@ -39,7 +39,7 @@ echo -n | tee /etc/postfix/{helo_access,{whitelisted,blacklisted}_{domains,email for domain in ${addmx[@]} do - echo "/^${domain/./\\.}$/ OK Primary and backup mail servers" | tee -a /etc/postfix/{helo_access,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 @@ -49,7 +49,7 @@ then addwhitelist_domain+=(${MYVEMAIL_WHITELIST_DOMAINS//,/ }) for whitelist_domain in ${addwhitelist_domain[@]} do - echo "/^${whitelist_domain/./\\.}$/ OK Whitelisted domain" | tee -a /etc/postfix/whitelisted_domains >/dev/null + echo "/^${whitelist_domain//./\\.}$/ OK Whitelisted domain" | tee -a /etc/postfix/whitelisted_domains >/dev/null done fi @@ -71,7 +71,7 @@ then addblacklist_domain+=(${MYVEMAIL_BLACKLIST_DOMAINS//,/ }) for blacklist_domain in ${addblacklist_domain[@]} do - echo "/^${blacklist_domain/./\\.}$/ REJECT Blacklisted domain" | tee -a /etc/postfix/blacklisted_domains >/dev/null + echo "/^${blacklist_domain//./\\.}$/ REJECT Blacklisted domain" | tee -a /etc/postfix/blacklisted_domains >/dev/null done else echo "/^null.void$/ OK Dummy entry" >/etc/postfix/blacklisted_domains