我的域的SPF记录应该用什么? [英] What should I use for SPF record of my domain?

查看:191
本文介绍了我的域的SPF记录应该用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在host.example2.com上托管example1.com。典型的cpanel场景而且:


  1. 而且,和magento一起安装了example1.com,它可以从host.example2.com向用户发送多种电子邮件。 li>
  2. 而且我也根据需要,将Google Apps的MX项目设置为example1.com。

非常典型所以我想出了这个SPF记录为example1.com:

  v = spf1 a mx include:host.example2.com include :_spf.google.com -all 

这是正确的吗?



似乎不是因为当我使用example1.com上的现场联系表单发送测试访问者消息(从主机发送到我的Google Apps电子邮件。 example2.com),我在Google Apps收件箱中收到的电子邮件仍然有一个'via'字段(通过host.example2.com)。我认为这意味着Google电子邮件将此消息不是由example1.com ITSELF发送?



此记录自2天前创建,via字段为当example1.com尝试从host.example2.com的服务器发送消息时仍然存在。



如果有人可以启发我,这将非常感激!谢谢!

解决方案

SPF记录与接收服务器识别发送服务器的方式无关。



接收服务器通过其IP地址识别发送服务器,对该IP地址进行反向DNS查找,以及在邮件会话开始时给出的HELO名称。



另一方面,SPF用于确定发送服务器是否被授权使用信封反向路径地址和HELO名称。


I have example1.com hosted on host.example2.com. Typical cpanel scenario. And:

  1. And example1.com is installed with Magento which sends many sorts of emails to the users from host.example2.com.
  2. And I also set up example1.com with Google Apps with its MX entries as required by them.

Very typical. So I came up with this SPF record for example1.com:

v=spf1 a mx include:host.example2.com include:_spf.google.com -all

Is this correct?

It seems not because when I used the on-site contact form on example1.com to send a test visitor message (which was sent to my Google Apps email from host.example2.com), the email I received in Google Apps inbox was still with a 'via' field (via host.example2.com). I figure this means Google email takes this message to be not sent by example1.com ITSELF?

This record has been created since 2 days ago and the 'via' field was still present when example1.com tries to send a message from the server of host.example2.com.

If anyone could enlighten me on this that'd be really appreciated! Thanks!

解决方案

The SPF record has nothing to do with the way the receiving server identifies the transmitting server.

The receiving server identifies the transmitting server by its IP address, a reverse DNS lookup on that IP address, and the HELO name it gives at the start of the mail session.

On the other hand SPF is used to determine if the transmitting server is authorized to use the envelope reverse-path address and HELO name.

这篇关于我的域的SPF记录应该用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆