CASA 中国反垃圾邮件联盟


Postfix中配置使用CASA RBL


作者:本站 2007-11-28 08:44:03

  CBL、CDL与CBL+、CBL-采用的都是DNS方式的实时黑名单技术,在Postfix中都使用RBL参数来配置。Postfix1.x和Postfix 2.x在使用RBL的配置上是不同的。

  Postfix 1.x:

  要先用maps_rbl_domains来定义RBL表,可以用“,”分隔依次使用多个RBL:

maps_rbl_domains = cblless.anti-spam.org.cn

, 然后在过滤条件中(如smtpd_recipient_restrictions )使用reject_maps_rbl来拒绝黑名单连接:

smtpd_recipient_restrictions = ... reject_maps_rbl,...

  Postfix 2.x:

  直接在过滤条件中(如smtpd_recipient_restrictions )使用reject_rbl_client来拒绝黑名单连接,可以用多个 reject_rbl_client  分隔依次使用多个RBL:

smtpd_recipient_restrictions =... 
  reject_rbl_client cblless.anti-spam.org.cn,...

  如果您想先测试一下RBL服务是否工作正常,可以在reject_maps_rbl指令和reject_rbl_client指令前加上warning_if_reject来改变默认的拒绝动作为警告(警告信息会在邮件日志中看到)。等确认工作正常后再去掉警告指令。