大网数据广告活动
服务器运维问答

How do I prevent the SPF_HELO_NONE warning when sending from Postfix?

· 52CE 我爱测

When using a tool like https://dkimvalidator.com/ to verify configuration of DKIM, SPF, DMARC, etc. for sending mail from a web server, I get a warning like this: 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record It seem…

问题原文

原帖链接 · Walf · CC BY-SA 4.0

When using a tool like https://dkimvalidator.com/ to verify configuration of DKIM, SPF, DMARC, etc. for sending mail from a web server, I get a warning like this:

0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record

It seems like a bad signal even though the score isn't really affected. How do I get rid of it?

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 4.0

Publish SPF records for HELO/EHLO hostnames

The Sender Policy Framework does not only protect MAIL FROM, but also HELO. Whereas the MAIL FROM identity MUST be verified (RFC 7208, 2.4), the verification of the HELO identity is only RECOMMENDED (RFC 7208, 2.3). This is the reason Spamassassin (rules/25_spf.cf), where this scoring comes from, only gives 0.0 by default.

In your own answer, you suggest changing the HELO hostname to match the domain, but that is not the only solution – and not the best solution in all cases. Some receiving systems gives negative scoring if the hostname in the HELO command does not match with the reverse DNS PTR record (SMTP Reverse DNS Mismatch). This is why you might want to add an SPF record for your HELO hostname, instead. (SPF FAQ / Common mistakes / Publish SPF records for HELO/EHLO names used by your mail servers.)

Publish SPF records for every hostname

Furthermore, every hostname with an A record that is not intended for sending email should be protected with SPF, too. Otherwise, anyone can use them as an envelope sender. (SPF FAQ / Common mistakes / Publish null SPF records for your domains that don't send mail; related answer.)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。