Zimbra之黑名单白名单

不得不说,Zimbra是个卓越的Email解决方案,但是Zimbra肯定也有不足的地方,不能在admin界面设定白名单黑名单(trusted domain/blocked domain)就是缺点之一。于是我陷入了困境:其他分公司和总部发给我们分公司的邮件,甚至是总部老板的邮件,被列入废件……汗啊……于是赶紧行动吧。

Zimbra的社区是晴朗的社区,Zimbra社区的人是热心的人。不到5分钟,对,不到5分钟就有人回复了我解决方案,大家分享一下:

编辑/opt/zimbra/conf/amavisd.conf.in

寻找

{ # a hash-type lookup table (associative array)
    '[email protected]'                        => -3.0,
    '[email protected]'              => -3.0,
    '[email protected]'                    => -3.0,
    '[email protected]'                  => -3.0,
    '[email protected]'              => -3.0,
    '[email protected]serv.ntbugtraq.com'       => -3.0,
    '[email protected]'      => -3.0,

段落,然后加上你要信任的域:

{ # a hash-type lookup table (associative array)
    'zimbra.com'                              => -10.0,
    '[email protected]'                        => -3.0,
    '[email protected]'              => -3.0,
    '[email protected]'                    => -3.0,
    '[email protected]'                  => -3.0,
    '[email protected]'              => -3.0,
    '[email protected]'       => -3.0,
    '[email protected]'      => -3.0,
    '[email protected]'      => -3.0,

-10就是无条件信任了,相反+10就是无条件阻挡了。然后存盘,

su zimbra
zmamavisdctl stop
zmamavisdctl start

应该就可以了。

Leave a Reply

Your email address will not be published. Required fields are marked *