mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-17 21:36:19 +00:00
Update build/run/docker-entrypoint/init.d/30-postfix.sh
This commit is contained in:
parent
3f2485ce0d
commit
4ab5c64c6b
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue