我得到了SPF和Sender-ID [email protected] ,我通过发送电子邮件到[email protected]进行testing。
我的设置:
1个VPS托pipe1个网站
后缀仅用于发送电子邮件
没有传入的电子邮件。 传入由Gmail处理
我在DNS中的txtlogging是(只有1个txtlogging):
"v=spf1 a include:_spf.google.com ~all"
我的一个logging是:
域名:example.com.au
VPS机器名称:主机
@ 123.12.12.123 <----- My VPS IP Address host 123.12.12.123
直到2天前,它正在工作,我没有做任何改变。 但是,现在我收到了以下消息softfail。
validation报告
---------------------------------------------------------- SPF check details: ---------------------------------------------------------- Result: softfail (SPF-Result: SoftFail) ID(s) verified: [email protected] DNS record(s): example.com.au. SPF (no records) example.com.au. 600 IN TXT "v=spf1 a include:_spf.google.com ~all" example.com.au. 600 IN TXT "google-site-verification=TyBn81xyFF2Qt3icqC8tD-EyZxwhKS1ce5AV6StaxHs" example.com.au. AAAA (no records) _spf.google.com. SPF (no records) _spf.google.com. 300 IN TXT "v=spf1 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com ~all" _netblocks.google.com. SPF (no records) _netblocks.google.com. 3600 IN TXT "v=spf1 ip4:64.18.0.0/20 ip4:64.233.160.0/19 ip4:66.102.0.0/20 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:74.125.0.0/16 ip4:173.194.0.0/16 ip4:207.126.144.0/20 ip4:209.85.128.0/17 ip4:216.58.208.0/20 ip4:216.239.32.0/19 ~all" _netblocks2.google.com. SPF (no records) _netblocks2.google.com. 3600 IN TXT "v=spf1 ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ~all" _netblocks3.google.com. SPF (no records) _netblocks3.google.com. 3600 IN TXT "v=spf1 ~all"
这是为什么? 我有添加到它的Txtlogging错了吗? 我也需要添加a以及我的VPS这样的ip address :
"v=spf1 a ip4:123,12,12,123 include:_spf.google.com ~all"
如果输出中包含连接地址,但根据所提供的报告,看起来您是通过IPv6连接的。 我之所以这样说,是因为在处理SPFlogging中a指令时,查到了example.com.au. AAAA example.com.au. AAAA而不是example.com.au. A example.com.au. A
如果客户端通过IPv6连接,则查找Alogging的机会将不会返回匹配连接地址的地址,因此完全忽略该地址,并且只能查找AAAA才是正常行为。
假设您的环境中上述内容合理,您将需要确保您的IPv6地址也包含在SPFlogging中(通过或其他指令)。