Server 为邮件服务器配置SPF记录

Server 为邮件服务器配置SPF记录,server,spf,Server,Spf,我想为我的网站配置SPF记录。这背后的原因是使用谷歌服务,即让你的电子邮件在谷歌现在和所有 我从谷歌找到的是: 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

我想为我的网站配置SPF记录。这背后的原因是使用谷歌服务,即让你的电子邮件在谷歌现在和所有

我从谷歌找到的是:

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地址)


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

因此,您可能希望:

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