首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么即使spf DNs记录被设置为软失败,我的postfix仍然拒绝spf硬失败的邮件?

为什么即使spf DNs记录被设置为软失败,我的postfix仍然拒绝spf硬失败的邮件?
EN

Server Fault用户
提问于 2021-07-08 13:57:52
回答 1查看 831关注 0票数 1

我得到的日志输出如下:

代码语言:javascript
复制
"Jul  7 11:23:46 mail policyd-spf[19779]: 550 5.7.23 Message rejected
due to: SPF fail - not authorized. Please see 
http://www.openspf.net/Why?s=mfrom;id=xyz@gmx.de;ip=<IP>;r=<UNKNOWN>
Jul  7 11:23:46 mail postfix/smtpd[19773]: NOQUEUE: reject: RCPT from
remotemailserver.de[IP]: 550 5.7.23 <mail@mymailserver.de>:
Recipient address rejected: Message rejected due to: SPF fail - not
authorized. Please see http://www.openspf.net/Why?s=mfrom;id=xyz@gmx.de
;ip=<IP>;r=<UNKNOWN>;; from=<xyz@gmx.de> to=<mail@mymailserver.de>
proto=ESMTP helo=<remotemailserver.de>"

我的政策-spf.conf看起来如下:

代码语言:javascript
复制
#  For a fully commented sample config file see policyd-spf.conf.commented

debugLevel = 1 
TestOnly = 1

HELO_reject = Fail
Mail_From_reject = Fail

PermError_reject = False
TempError_Defer = False

skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1

remotemailserver.de的spf记录如下:

代码语言:javascript
复制
subdomain.remotemailserver.de.   508     IN      TXT     "v=spf1 include:_spf.remotemailserver.de ~all"

到目前为止,我不是后缀专家,但根据https://manpages.debian.org/testing/postfix-policyd-spf-python/policyd-spf.conf.5.en.html设置HELO_rejectMail_From_rejectFail不应该硬失败收到的邮件在~all spf记录。

我哪里错了?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2021-07-08 14:12:14

这实际上是我的一种误解。我假设检查了remotemailserver.de的sfp条目。但是检查的是FROM字段的邮件服务器。

在本例中,gmx.net的sfp记录是-all记录,这意味着我得到了一个硬失败(正确)。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1069020

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档