配置邮件服务器的SPF记录

时间:2015-06-16 14:55:22

标签: server spf

我想为我的网站配置SPF记录。这背后的原因是使用Google服务,即在Google Now&所有

我从Google发现的是:

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记录。因此,我需要为我的服务器和放大器分别创建两个单独的记录。谷歌?

那就像下面的那样(ip地址是我服务器的静态IP地址)?

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

1 个答案:

答案 0 :(得分:0)

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

所以你可能想要它:

v=spf1 ip4:1.1.1.1 include:_spf.google.com ~all
相关问题