来自我网络的 Postfix 垃圾邮件泛滥

来自我网络的 Postfix 垃圾邮件泛滥

我的 postfix 服务器出现了一些问题。最近它开始发送垃圾邮件,但仅限于我的本地网络,因为开放中继已关闭,只允许进入我的网络。我尝试了很多解决方案和无数的 postfix 设置,但垃圾邮件仍然不断涌入。该服务器安装了 spamassassin,最近已清除病毒。

disable_vrfy_command = yes
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination
    warn_if_reject reject_non_fqdn_helo_hostname
    warn_if_reject reject_unknown_helo_hostname
    warn_if_reject reject_unknown_client
    reject_non_fqdn_sender
    reject_non_fqdn_recipient
    reject_unknown_sender_domain
    reject_unknown_recipient_domain
    reject_rbl_client zen.spamhaus.org
    reject_rbl_client bl.spamcop.net
    reject_rbl_client dnsbl.sorbs.net=127.0.0.2
    reject_rbl_client dnsbl.sorbs.net=127.0.0.3
    reject_rbl_client dnsbl.sorbs.net=127.0.0.4
    reject_rbl_client dnsbl.sorbs.net=127.0.0.5
    reject_rbl_client dnsbl.sorbs.net=127.0.0.7
    reject_rbl_client dnsbl.sorbs.net=127.0.0.9
    reject_rbl_client dnsbl.sorbs.net=127.0.0.11
    reject_rbl_client dnsbl.sorbs.net=127.0.0.12
    warn_if_reject reject_rhsbl_sender dsn.rfc-ignorant.org
    warn_if_reject reject_rhsbl_sender abuse.rfc-ignorant.org
    warn_if_reject reject_rhsbl_sender whois.rfc-ignorant.org
    warn_if_reject reject_rhsbl_sender bogusmx.rfc-ignorant.org
    warn_if_reject reject_rhsbl_sender postmaster.rfc-ignorant.org
    reject_unauth_pipelining

有人能提前告诉我吗?谢谢,Alin

答案1

检查邮件日志(/var/log/maillog)和 postfix 队列postfix -q/postcat -q [ID]的发件人地址,以了解垃圾邮件的来源。

答案2

看看Postfix Policyd v2 Cluebringer对你有用。它是一款功能强大的 Postfix 插件,用于按用户/全局限制 SMTP 速率。

相关内容