【问题标题】:SPF record issueSPF 记录问题
【发布时间】:2013-08-14 08:14:56
【问题描述】:

有时,当我的服务器将电子邮件发送到由 google 应用程序作为分发列表管理的“内部”地址时,我会收到这些错误

Received: from ovhprod.diveboard.com ([2607:5300:60:1d85::1])
    by mx.google.com with ESMTPS id e4si6519596qas.128.2013.08.14.00.28.57
    for <logs@diveboard.com>
    (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
    Wed, 14 Aug 2013 00:28:57 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning plugin@diveboard.com does not designate 2607:5300:60:1d85::1 as permitted sender) client-ip=2607:5300:60:1d85::1;
Authentication-Results: mx.google.com;
   spf=softfail (google.com: domain of transitioning plugin@diveboard.com does not designate 2607:5300:60:1d85::1 as permitted sender) 

我确实添加了 SPF 记录,但看起来我做错了 - 任何提示!?

@ 10800 IN SPF "v=spf1 a mx include:smtp1.uservoice.com ~all"
@ 10800 IN SPF "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
@ 10800 IN SPF "v=spf1 ip4:192.95.11.34/30 ptr ?all"
@ 10800 IN SPF "v=spf1 ip4:198.27.68.133/32 ip6:2607:5300:60:1d85::1/64 ptr ?all"
@ 10800 IN TXT "v=spf1 a mx include:smtp1.uservoice.com ~all"
@ 10800 IN TXT "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
@ 10800 IN TXT "v=spf1 ip4:192.95.11.34/30 ptr ?all"
@ 10800 IN TXT "v=spf1 ip4:198.27.68.133/32 ip6:2607:5300:60:1d85::1/64 ptr ?all"

【问题讨论】:

    标签: dns spf


    【解决方案1】:

    每个主机只能有一个 1 SPF 字符串。 SPF 记录可以指定为 TXT 或 SPF 记录。最佳做法是拥有 1 条 TXT 和 1 条 SPF 记录。

    在此处检查您的域: http://spf.myisp.ch

    我建议你阅读维基百科上的整个 SPF 页面:http://en.wikipedia.org/wiki/Sender_Policy_Framework#FAIL_and_forwarding

    【讨论】:

      【解决方案2】:

      您的 SPF 记录写得不好。您只能拥有一个 SPF 记录。

      你可以全部替换为

      "v=spf1 a mx ptr ip4:192.95.11.34/30 ip4:198.27.68.133/32 ip6:2607:5300:60:1d85::1/64 include:smtp1.uservoice.com  include:_spf.google.com include:sendgrid.net ~all"
      

      不过最后一个 SPF 规范建议避免使用 PTR 机制。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-08-27
        • 2015-12-02
        • 2015-11-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多