Recurring loop problem with spf record

My SPF record is below, along with the errors im getting in the dmarcian spf testing…

I don’t know why its looking up so many IP addresses for my domain? It is on cloudflare, not sure that should effect the loop in SPF when i have the IP address set for the server?

I am trying to correct the problem below, please any advice is appreciated!!

v=spf1 a mx ip4: ~all

  • ERROR 153 DNS lookups required to evaluate the SPF record. The maximum is 10.
  • ERROR Too many include mechanisms / redirect modifiers encountered. The SPF Surveyor can process a maximum of 50.

I’m not sure if the site you’re having trouble with is the “” that appears in the SPF record you posted, but if it is then there are a couple of issues I can see with the current SPF record including it appears that you have included the “v=spf1” portion of the record twice and there is an extra “include:” modifier without any reference of what to include.

The record currently reads

v=spf1 a mx include: ip4: v=spf1 ~all

It should read more like:

v=spf1 a mx ip4: ~all

Without knowing the full background of this website, I also suspect that it is not necessary to include the line “” -I think this is causing your looping problem.

In the end, the record likely should read more like this:

v=spf1 a mx ip4: ~all

Best wishes!

1 Like

As eric already pointed out, you can’t have “” in the SPF record for the “” domain. That is a recursive reference.

Next issue - there’s no associated SPF record for, so that will fail as well.

Looking at SPF record for suggest that the correct include could be “”:
$ dig txt +short
"v=spf1 ip4: ip4: ~all"

I suggest this SPF record:
"v=spf1 ip4: mx -all"

Note that the mechanisms should be order after volume, so that the most used mechanism (i.e. highest mail volume) should appear first in the record.