1
0
镜像自地址 https://github.com/mail-in-a-box/mailinabox.git 已同步 2026-03-24 19:07:23 +01:00

Add custom whitelist

这个提交包含在:
Michael Kroes
2019-07-16 17:03:04 +02:00
父节点 1f024e1797
当前提交 7b1adb3806
修改 2 个文件,包含 6 行新增1 行删除

查看文件

@@ -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
# this final check will at least check the output is not html
# 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
cat /root/mailinabox/conf/postgrey_whitelist_clients >> /etc/postgrey/whitelist_clients
fi
fi
fi