diff --git a/build/run/docker-entrypoint/init.d/30-postfix.sh b/build/run/docker-entrypoint/init.d/30-postfix.sh index 20ca4f5..1d331cf 100755 --- a/build/run/docker-entrypoint/init.d/30-postfix.sh +++ b/build/run/docker-entrypoint/init.d/30-postfix.sh @@ -47,7 +47,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 @@ -69,7 +69,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