I can’t get my SPF straight. My website is hosted on bluehost. I have tried their helpdesk but they were not very useful to say the least. I’m testing my emails with mail-tester.com and keep on running into new issues.
I have found this post to be useful: SPF Permanent Error: Too many DNS lookups
Especially Adam's answer.
I have tried several things but I’m down to my wit end.
One thing that seems to work for a while was this:
v=spf1 ip4:111.111.11.11 ip4:111.111.11.111 a mx include:_spf.bluehost.exemple.com include:_spf.google.com ~all
The ip addresses at the beginning were given by mail-tester has not having sender policy but of course the addresses kept changing.
After checking with this tool:
It seems that mails are coming from gateway24.websitewelcome.com. I went ahead and added this to my SPF as follow:
v=spf1 a mx include:_spf.bluehost.exemple.com include:_spf.gateway24.websitewelcome.com include:_spf.google.com ~all
Yesterday it was looking like that was the end of the story but today mail-tester.com is saying that none of those variations have an “applicable sender policy”:
_spf.bluehost.exemple.com
bluehost.exemple.com
_spf.bluehost.com
bluehost.com
Really can’t see what I’m missing here. Thanks a ton to anyone that tries to provide help.
Here is my current spf:
v=spf1 a mx include:bluehost.exemple.com include:_spf.gateway24.websitewelcome.com include:_spf.google.com ~all
Here is the entire message mail-tester is giving me:
dig +short TXT exemple.com :
• "v=spf1 a mx include:bluehost.exemple.com include:_spf.gateway24.websitewelcome.com include:_spf.google.com ~all"
• "google-site-verification=blablablablablablabla "
dig +short TXT @ns1.bluehost.com. exemple.com : • "v=spf1 a mx include:bluehost.exemple.com include:_spf.gateway24.websitewelcome.com include:_spf.google.com ~all"
• "google-site-verification=blablablablablablabla" spfquery --scope mfrom --id hello@exemple.com --ip 111.111.11.11 --helo-id gateway24.websitewelcome.com :
• permerror
• exemple.com: Included domain 'bluehost.exemple.com' has no applicable sender policy
• exemple.com: Included domain 'bluehost.exemple.com' has no applicable sender policy
• Received-SPF: permerror (exemple.com: Included domain 'bluehost.exemple.com' has no applicable sender policy) receiver=ns111111.ip-11-11-111.eu; identity=mailfrom; envelope-from="hello@exemple.com"; helo=gateway24.websitewelcome.com; client-ip=111.111.11.11