# Recurring loop problem with spf record

**URL:** <https://forum.dmarcian.com/t/recurring-loop-problem-with-spf-record/1271>\
**Category:** Technical Help\
**Created:** [July 1, 2020, 11:08am UTC](https://forum.dmarcian.com/t/recurring-loop-problem-with-spf-record/1271 "2020-07-01T11:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natural](https://avatars.discourse-cdn.com/v4/letter/n/e19adc/32.png) [@Natural](https://forum.dmarcian.com/u/Natural)\
**Post date:** [July 1, 2020, 11:08am UTC](https://forum.dmarcian.com/t/recurring-loop-problem-with-spf-record/1271/1 "2020-07-01T11:08:50Z")

</div>

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 include:natural-sciatic-relief.com ip4:209.133.209.251 ~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.

---

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://forum.dmarcian.com/u/eric)\
**Post date:** [July 2, 2020, 3:05pm UTC](https://forum.dmarcian.com/t/recurring-loop-problem-with-spf-record/1271/2 "2020-07-02T15:05:24Z")

</div>

I’m not sure if the site you’re having trouble with is the “[natural-sciatic-relief.com](http://natural-sciatic-relief.com)” 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.

> [https://dmarcian.com/spf-survey/?domain=natural-sciatic-relief.com](https://dmarcian.com/spf-survey/?domain=natural-sciatic-relief.com)

The record currently reads

> v=spf1 a mx include:natural-sciatic-relief.com include: ip4:209.133.209.251 v=spf1 include:\_spf.mailerlite.com ~all

It should read more like:

> v=spf1 a mx include:natural-sciatic-relief.com ip4:209.133.209.251 include:\_spf.mailerlite.com ~all

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

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

> v=spf1 a mx ip4:209.133.209.251 include:\_spf.mailerlite.com ~all

Best wishes!

---

<div class="post-metadata">

**Author:** ![UffeA](https://avatars.discourse-cdn.com/v4/letter/u/b5e925/32.png) [@UffeA](https://forum.dmarcian.com/u/UffeA)\
**Post date:** [July 6, 2020, 7:35am UTC](https://forum.dmarcian.com/t/recurring-loop-problem-with-spf-record/1271/3 "2020-07-06T07:35:32Z")

</div>

As eric already pointed out, you can’t have “include:natural-sciatic-relief.com” in the SPF record for the “[natural-sciatic-relief.com](http://natural-sciatic-relief.com)” domain. That is a recursive reference.

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

Looking at SPF record for [mailerlite.com](http://mailerlite.com) suggest that the correct include could be “\_spf.mailerlite.io”:  
`$ dig txt mailerlite.com +short`  
`"v=spf1 include:_spf.mailerlite.io include:_spf.google.com include:_spf.mlsend.com include:_spf.mailersendapp.com include:helpscoutemail.com ip4:46.101.232.166 ip4:185.79.247.75 ~all"`

I suggest this SPF record:  
`"v=spf1 include:_spf.mailerlite.io a:natural-sciatic-relief.com ip4:209.133.209.251 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.
