查看具有4个域及其以下SPF记录的假设场景:
域: example.com SPF记录: v=spf1 include:otherdomain.com ~all
域: otherdomain.com SPF记录: v=spf1 a include:thirddomain.com ~all
域名: thirddomain.com SPF记录: v=spf1 ip4 4:1.2.3.4 include:unsecuredomain.com ~all
域: unsecuredomain.com SPF记录: v=spf1 +all
问题:任何人,unsecuredomain.com或thirddomain.com能代表example.com发送电子邮件吗?有人能代表thirddomain.com发送电子邮件吗?
谢谢大家
发布于 2020-10-07 22:00:22
我知道你在担心什么,但没关系:包含域的all策略不为您自己的SPF策略创建了后门。
otherdomain.com可以从它的A记录点的任何地方发送example.com,也可以从thirddomain.com的文字IP发送。thirddomain.com只能从其字面IP发送example.com。unsecuredomain.com根本不能派人去取example.com。example.com的~all默认机制中获得软失败。它在RFC7208第5.2节中被澄清了
例如,在引用的记录中评估"-all“指令并不会终止整个处理,也不一定会导致总体”失败“。
和
使用“包括”机制,可以授权一组管理上的外部主机,但是确定发送方策略仍然是原始域的SPF记录的函数(由该记录中的"all“机制确定)。
简而言之,只使用您自己的记录的all机制。
https://stackoverflow.com/questions/64252521
复制相似问题