We are settings up a site on GoDaddy's managed wordpress product. For mail to go through the contact form we must use the relay server
relay-hosting.secureserver.net. Mail sent through the contact form is only ever directed internally to our own Office365 hosted mail boxes.
In order to prevent Office365 from marking the messages as spam we must update our spf record properly. The details of the message when sent to junk mail indicate the IP address
126.96.36.199 needs to be included in our spf. When we add it to our record it correctly allows spf to pass and mail flows to our inboxes. However it is possible the mail could come from various IPs used by GoDaddy.
GoDaddy provides this helpful page that describes the spf change to make. https://www.godaddy.com/help/do-i-need-spf-or-dkim-validation-to-send-campaigns-15863
When I make this change, adding
include:spf.gem.godaddy.com in our record, the mail gets put into junk by Office365. The info again shows 188.8.131.52 as failing.
Received-SPF: Fail (protection.outlook.com: domain of ourdomain.com does not designate 184.108.40.206 as permitted sender)
If I trace the records down through dns I get the following results
ourdomain.com "v=spf1 ip4:xx.xxx.xxx.xxx/27 include:spf.gem.godaddy.com include:spf.protection.outlook.com -all" spf.gem.godaddy.com "v=spf1 include:spf.em.secureserver.net ~all" spf.em.secureserver.net "v=spf1 ip4:220.127.116.11/25 ip4:18.104.22.168/25 ip4:22.214.171.124/25 ip4:126.96.36.199/25 ip4:188.8.131.52/24 ip4:184.108.40.206/24 ip4:220.127.116.11/24 ~all"
The IP block in the final record would include 18.104.22.168 so I'm not understanding where in this chain SPF would fail.