小编Nic*_*ick的帖子

Postfix reject_rbl_client 黑名单不起作用

我有一个使用 Postfix 的邮件服务器 (iRedMail)。我收到了很多垃圾邮件,所以我修改了 /etc/postfix/main.cf 文件并将 smtpd_recipient_restrictions 设置为:

smtpd_recipient_restrictions =
        reject_rbl_client zen.spamhaus.org,
        reject_rbl_client bl.spamcop.net,
        reject_rbl_client cbl.abuseat.org,
        reject_rbl_client b.barracudacentral.org,
        reject_invalid_hostname,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        check_policy_service inet:127.0.0.1:7777,
        check_policy_service inet:127.0.0.1:10031,
        reject_non_fqdn_sender,
        reject_non_fqdn_hostname,
        reject_non_fqdn_recipient,
        reject_unlisted_recipient,
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination,
        permit
Run Code Online (Sandbox Code Playgroud)

然而,垃圾邮件仍然来自这些黑名单上的 IP。

如果我查看我的 /var/log/mail.log 文件,我会看到消息通过。这是一个例子:

Jan 11 01:09:19 mailhost postfix/smtpd[935]: DA5736B578: client=localhost[127.0.0.1]
Jan 11 01:09:19 mailhost postfix/cleanup[922]: DA5736B578: message-id=<ObreptitiousSoundness_300b221f33a2b213a8dc0ee683baadacnick@mydomain.com>
Jan 11 01:09:19 mailhost postfix/qmgr[31818]: DA5736B578: from=<Trump.Business.Success@aslk.riflebuzz.review>, size=6081, nrcpt=1 (queue active)
Jan 11 01:09:19 mailhost postfix/smtpd[935]: disconnect from localhost[127.0.0.1]
Jan 11 01:09:19 mailhost amavis[737]: (00737-01) Passed CLEAN, LOCAL …
Run Code Online (Sandbox Code Playgroud)

postfix spam blacklist

5
推荐指数
1
解决办法
2336
查看次数

标签 统计

blacklist ×1

postfix ×1

spam ×1