【问题标题】:Configuring SPF record for mail server为邮件服务器配置 SPF 记录
【发布时间】:2015-06-17 14:11:56
【问题描述】:

我想为我的网站配置 SPF 记录。这背后的原因是使用 Google 服务,即将您的电子邮件保存在 Google Now 中。

我从谷歌发现的是:

Create a TXT record containing this text: v=spf1 include:_spf.google.com ~all

To authorize an additional mail server, add the server's IP address before just
before the ~all argument using the format ip4:address or ip6:address.

请注意,到目前为止,我还没有向我的服务器添加任何 SPF 记录。那么我需要为我的服务器和 Google 分别设置两条单独的记录吗?

那么会是下面这样吗(ip地址是我服务器的静态ip地址)?

v=spf1 include:_spf.google.com ip4:1.1.1.1 ~all

【问题讨论】:

    标签: server spf


    【解决方案1】:

    假设您使用网络服务器上的 SMTP 服务器(不使用 Google 或任何其他服务)直接从您的网站发送电子邮件,那么这看起来是正确的。每个域应该只有一个 SPF 记录,并且该记录需要包含所有电子邮件来源的指令。因此,您建议的记录看起来是正确的,尽管您可能希望将 ip4:1.1.1.1 放在 include:_spf.google.com 之前,因为前者的评估成本更低。

    所以你可能想成功:

    v=spf1 ip4:1.1.1.1 include:_spf.google.com ~all
    

    【讨论】:

      猜你喜欢
      • 2012-05-01
      • 2015-12-21
      • 2018-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-27
      • 2021-11-06
      • 2018-03-31
      相关资源
      最近更新 更多