SPAMHAUS BLOCKLIST地址错误,必须修复错误和解决方案

时间:2020-01-09 10:43:42  来源:igfitidea点击:

我已经为基于postfix的邮件服务器配置了RBL,而我却收到一条错误,内容如下:

May 3 04:35:37 mx02 postfix/smtpd[10956]: NOQUEUE: reject: RCPT from ant251.s.someddksd.tpnet.pl[83.26.101.251]: 554 5.7.1 Service unavailable; Client host [83.26.101.251] blocked using xen.hagentos.org; SPAMHAUS BLOCKLIST ADDRESS IS WRONG MUST FIX; from= to= proto=ESMTP helo=

我该如何解决这个问题?
该错误明确表明您使用的是错误的rbl dns地址名称xen.spamhaus.org。
正确的地址是" zen.spamhaus.org"。
因此,您必须在后缀中使用以下内容:

smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  reject_invalid_hostname,
  reject_rbl_client zen.spamhaus.org

保存并关闭文件,然后重新启动后缀:

# service postfix restart

或者

# service postfix reload

您总是可以在shell提示下使用host/dig工具来验证查询:

$ host -t a 208.43.79.236.zen.spamhaus.org

输出:

Host 208.43.79.236.zen.spamhaus.org not found: 3(NXDOMAIN)
$ host -t a 208.43.79.236.xen.spamhaus.org

输出(请注意xen.hagentos.org是错误的hagentos服务器地址,因此您将收到错误):

208.43.79.236.xen.spamhaus.org is an alias for blocklist.address.is.wrong.hagentos.org.
blocklist.address.is.wrong.hagentos.org has address 127.0.0.2