SPF Records addition when records already exist

Jose Vega

i´ve been reading a lot about SPF and DKIM, and I understand they´re very important. I already added DKIM and SPF records for my hosting, google apps, mandrill, and elasticemail. But I dont know how to integrate the SPF records that mailwizz generates when I added sending domains.

This is the SPF record I already have:
v=spf1 +a +mx +ip4: include:_spf.google.com include:_spf.elasticemail.com include:spf.mandrillapp.com ~all

I know it´s correctly because it passed the test here: http://www.kitterman.com/spf/validate.html

mandrill and elasticemail instructions were to just add include:DOMAIN before ~all , so I tried adding mailwizz code before the includes, but it didnt pass the test. It says too many DNS lookups:

v=spf1 +a +mx +ip4: mx a ptr a:newsletters.apps.vegacorp.me ip4: include:_spf.google.com include:_spf.elasticemail.com include:spf.mandrillapp.com ~all

DKIM is fine because mandrill and elasticemail say I can add as many as I want. SPF is the only problem.
I found the solution. Using the cpanel email authentication tool I added mailwizz IP and domain and it generated the right code. At the end I only needed to add the + sign before the a and ip4 record and remove one include because they were too many.

This is my final SPF code:

v=spf1 +a +mx +ip4: +a:newsletters.apps.vegacorp.me +ip4: include:_spf.elasticemail.com include:spf.mandrillapp.com ~all

And this code passed the test on the SPF verifier. http://www.kitterman.com/spf/validate.html
  • Like
Reactions: Rob