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

This commit is contained in:
myve 2025-03-04 22:00:51 +00:00
commit 0a05318b07

View file

@ -34,6 +34,7 @@ fi
addmx=(${MYVEMAIL_DOMAIN}) addmx=(${MYVEMAIL_DOMAIN})
addmx+=(${MYVEMAIL_ADDMX//,/ }) addmx+=(${MYVEMAIL_ADDMX//,/ })
echo -n | tee /etc/postfix/{helo_access,{whitelisted,blacklisted}_{domains,emails}} >/dev/null 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
for domain in ${addmx[@]} for domain in ${addmx[@]}
do 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/helo_access >/dev/null