mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Update whitelist and check if custom whitelist exists
This commit is contained in:
parent
b3b02ee91f
commit
3d8586702e
@ -3,3 +3,4 @@
|
||||
/^mta-aws\d+\.sanomacorp\.net$/
|
||||
/^mail.*\.mandrillapp\.com$/
|
||||
/^mail\d+\.ikea.com$/
|
||||
/^webgride\d+\.emsecure.net$/
|
||||
|
@ -254,7 +254,9 @@ if [ ! -f /etc/postgrey/whitelist_clients ] || find /etc/postgrey/whitelist_clie
|
||||
# before moving it into place
|
||||
if [ \$(file -b --mime-type /tmp/postgrey_whitelist_clients) == "text/plain" ]; then
|
||||
mv /tmp/postgrey_whitelist_clients /etc/postgrey/whitelist_clients
|
||||
if [ -f /root/mailinabox/conf/postgrey_whitelist_clients ] ; then
|
||||
cat /root/mailinabox/conf/postgrey_whitelist_clients >> /etc/postgrey/whitelist_clients
|
||||
fi
|
||||
else
|
||||
rm /tmp/postgrey_whitelist_clients
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user