Update build/run/docker-entrypoint/init.d/30-postfix.sh

This commit is contained in:
myve 2025-01-10 21:45:03 +00:00
commit 37b981d34b

View file

@ -33,7 +33,7 @@ fi
# Whitelist Primary and Backup mail servers
addmx=(${MYVEMAIL_DOMAIN})
addmx+=(${MYVEMAIL_ADDMX//,/ })
echo -n | tee /etc/postfix/{helo_access,{whitelist,blacklist}_{domains,emails}} >/dev/null
echo -n | tee /etc/postfix/{helo_access,{whitelisted,blacklisted}_{domains,emails}} >/dev/null
for domain in ${addmx[@]}
do
echo "${domain} OK Primary and backup mail servers" | tee -a /etc/postfix/helo_access >/dev/null
@ -98,7 +98,7 @@ postmap /etc/postfix/helo_access \
/etc/postfix/smtp_header_checks /etc/postfix/header_checks \
/etc/postfix/body_checks \
/etc/postfix/postscreen_access.cidr
for map in /etc/postfix/{whitelist,blacklist}_{domains,emails}
for map in /etc/postfix/{whitelisted,blacklisted}_{domains,emails}
do
if [ -s ${map} ]
then