mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
Add custom whitelist
This commit is contained in:
parent
1f024e1797
commit
7b1adb3806
4
conf/postgrey_whitelist_clients
Normal file
4
conf/postgrey_whitelist_clients
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/^mailgwgb\d+\.rightnowtech\.com$/
|
||||||
|
/^mx-\d+\.reddit\.com$/
|
||||||
|
/^mta-aws\d+\.sanomacorp\.net$/
|
||||||
|
/^mail.*\.mandrillapp\.com$/
|
@ -225,8 +225,9 @@ if [ ! -f /etc/postgrey/whitelist_clients ] || find /etc/postgrey/whitelist_clie
|
|||||||
# curl manual states that --fail sometimes still produces output
|
# curl manual states that --fail sometimes still produces output
|
||||||
# this final check will at least check the output is not html
|
# this final check will at least check the output is not html
|
||||||
# before moving it into place
|
# before moving it into place
|
||||||
if [ $( file -b --mime-type /tmp/postgrey_whitelist_clients) == "text/plain" ]; then
|
if [ \$(file -b --mime-type /tmp/postgrey_whitelist_clients) == "text/plain" ]; then
|
||||||
mv /tmp/postgrey_whitelist_clients /etc/postgrey/whitelist_clients
|
mv /tmp/postgrey_whitelist_clients /etc/postgrey/whitelist_clients
|
||||||
|
cat /root/mailinabox/conf/postgrey_whitelist_clients >> /etc/postgrey/whitelist_clients
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user