mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 00:06:19 +00:00
Fix duplicate entries on docker compose reset
This commit is contained in:
parent
fef88a1d7f
commit
ad41061774
3 changed files with 8 additions and 9 deletions
|
|
@ -9,7 +9,11 @@ mkdir /var/spool/postfix/etc
|
|||
cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
|
||||
|
||||
# Whitelist localhost
|
||||
sed -i "s/{{LOCAL_IPADDRESS}}/$(wget -q4O- ipv4.icanhazip.com)/" /etc/postfix/postscreen_access.cidr
|
||||
tee /etc/postfix/postscreen_access.cidr >/dev/null <<- postscreen_access.cidr
|
||||
# Permit my own IP addresses
|
||||
$(wget -q4O- ipv4.icanhazip.com)/32 permit
|
||||
|
||||
postscreen_access.cidr
|
||||
|
||||
# Configure backup mail servers
|
||||
if [ ${MYVEMAIL_BACKUPMX} ]
|
||||
|
|
@ -29,6 +33,7 @@ fi
|
|||
# Whitelist
|
||||
addmx=(${MYVEMAIL_DOMAIN})
|
||||
addmx+=(${MYVEMAIL_ADDMX//,/ })
|
||||
echo | tee /etc/postfix/{helo_access,rbl_override} >/dev/null
|
||||
for domain in ${addmx[@]}
|
||||
do
|
||||
echo "${domain} OK" | tee -a /etc/postfix/{helo_access,rbl_override} >/dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue