我得到的日志输出如下:
"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看起来如下:
# 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,::1remotemailserver.de的spf记录如下:
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_reject和Mail_From_reject到Fail不应该硬失败收到的邮件在~all spf记录。
我哪里错了?
发布于 2021-07-08 14:12:14
这实际上是我的一种误解。我假设检查了remotemailserver.de的sfp条目。但是检查的是FROM字段的邮件服务器。
在本例中,gmx.net的sfp记录是-all记录,这意味着我得到了一个硬失败(正确)。
https://serverfault.com/questions/1069020
复制相似问题