RBL 的后缀白名单

Postfix Whitelist for RBL

Google 即将发布的服务器今天在 SORBS 上收听

NOQUEUE: reject: RCPT from mail-ot0-f180.google.com[74.125.82.180]: 451 4.7.1 Service unavailable; Client host [74.125.82.180] blocked using dnsbl.sorbs.net; Currently Sending Spam See: http://www.sorbs.net/lookup.shtml?74.125.82.180;

现在我想将它们列入白名单。但这不起作用:

whitelist_recipient:
/^mail-.*\.google\.com$/    OK

后缀配置:

main.cf:
smtpd_recipient_restrictions = 
    ....
    check_recipient_access hash:/etc/postfix/whitelist_recipient,
    ....
    reject_rbl_client dnsbl.sorbs.net,
    ....

但是为什么呢? postmap whitelist_recipient 我做过。

还有一个

postmap -q "mail-ot0-f180.google.com" regexp:whitelist_recipient

说:好的

我做错了什么? 感谢您的帮助!

好吧,经过很多时间,我发现了我的错误!

main.cf:
smtpd_recipient_restrictions = 
    ....
    check_client_access regexp:/etc/postfix/whitelist_recipient,
    ....
    reject_rbl_client dnsbl.sorbs.net,
    ....

它不是 hash: 它必须 regexp: