大网数据广告活动
服务器运维问答

What is the consequence of SPF error 'Too many lookups'?

· 52CE 我爱测

I am adding a domain (xero.com) to our existing SPF record, to allow marketing emails to be sent from an external system and appear as if they are from us. The SPF record for xero.com is large and including it would take our own …

问题原文

原帖链接 · userSteve · CC BY-SA 3.0

I am adding a domain (xero.com) to our existing SPF record, to allow marketing emails to be sent from an external system and appear as if they are from us.

The SPF record for xero.com is large and including it would take our own SPF record over the 10 lookup limit, resulting in error Permanent Error: Too many DNS lookup

This is unfortunate, but what effect if any does this error actually have (for both hard and soft fail)? Will it prevent any mail being sent, or allow all, or just ignore this included domain?

In addition to this, we advise some of our clients to include our domain in their SPF records so we can send mail on their behalf.

Could increasing the included domains on our SPF record have a negative impact on theirs?

Conversely, if I get round this problem by setting our SPF record to v=spf1 +all to allow everything, could this also have an undesired effect for our clients that might use our domain in their SPF record?

已采纳解答

原帖链接 · BillThor · CC BY-SA 3.0

The effect is that your SPF record is ignored. Please do the following. Your SPF record requires 6 lookups excluding any MX and A records included in the record. (An MX record lookup may result in 2 or more lookups.)

  • Use IPv4 or IPv6 addresses ranges in your SPF record not names. This will prevent additional lookups.
  • Don't include MX if you are providing IP addresses for the servers.
  • You are using google as the MX, which is handled by the include:_spf.google.com entry. You don't need the MX specification.

Consider setting up DMARC with a reporting address so you can determine if you could set a -all policy. You will get reports on how well you are following your policy and failure rates. Use a report disposition until the only failure reports you get are for email that does not originate from your domain. Don't set your SPF policy to -all until you are sure you have listed all the valid senders in your SPF record.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。