Postfix 禁用自行发送电子邮件

Postfix 禁用自行发送电子邮件

我遇到了一点小问题。一些垃圾邮件发送者从我的地址向我发送电子邮件。

这是邮件标题:

From - Fri Aug 20 08:06:15 2010
X-Account-Key: account7
X-UIDL: 1201266183.2446
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Return-Path: <[email protected]>
Received: from mnl-latvia.lv ([unix socket])
     by localhost (Cyrus v2.2.13-Debian-2.2.13-10) with LMTPA;
     Fri, 20 Aug 2010 07:17:26 +0300
X-Sieve: CMU Sieve 2.2
X-Greylist: delayed 328 seconds by postgrey-1.27 at mnl-bck; Fri, 20 Aug 2010 07:17:20 EEST
Received: from 59.93.217.133 (unknown [59.93.217.133])
    by mnl-latvia.lv (ESMTP daemon) with ESMTP id 0F8572E6970
    for <[email protected]>; Fri, 20 Aug 2010 07:17:19 +0300 (EEST)
Received: (qmail 2323 by uid 603); Fri, 20 Aug 2010 08:11:00 +0400
Message-Id: <[email protected]>
From: [email protected]
To: [email protected]
Subject: [email protected] VIAGRA X Official Seller -77%
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Date: Fri, 20 Aug 2010 07:17:19 +0300 (EEST)
X-mnl-latvia.lv-MailScanner: Found to be clean
X-mnl-latvia.lv-MailScanner-From: [email protected]
X-mnl-latvia.lv-MailScanner-To: [email protected]

邮件服务器在 postfix、spamassasin 上运行。spamassasin 规定,所有来自拉脱维亚地址的邮件都列入白名单。

垃圾邮件处理程序垃圾邮件白名单规则

From:           *@*.lv          yes

主配置文件

smtpd_recipient_restrictions = hash:/etc/postfix/access,
        permit_sasl_authenticated,
        permit_tls_clientcerts,
        permit_mynetworks,
        check_policy_service inet:127.0.0.1:60000
        reject_invalid_hostname,
        reject_non_fqdn_sender,
        reject_unknown_sender_domain,
        reject_non_fqdn_recipient,
        reject_unknown_recipient_domain,
        reject_unauth_destination,
        permit

问题是:如果发件人与收件人相同并且发件人未经身份验证,我可以在 smtp 级别丢弃邮件吗?

邮件标头中的发件人为:
已接收:来自 59.93.217.133(未知 [59.93.217.133]),
因此未通过身份验证。我说得对吗?

答案1

配置 SPF 并在 Postfix 中使用一些 spf 检查框架(tumgreyspf、postfix-policyd-spf-perl 等)。

相关内容