Note: addresses listed below should have a . instead of an _ but I was having trouble posting
We have a website set up to run through Cloudflare, we’ll call this “websitename_co_uk” for now.
We also have emails set up on “websitename_com” using Office365.
We have programmed the contact forms & order confirmation emails on the _co_uk site to be sent to and from “[email protected]_com”.
We have set an SPF record up on the _com DNS to allow emails to be sent on the IP address of the server that _co_uk is set up on. When we disbale CloudFlare for _co_uk, emails are receieved. When CloudFlare is enabled, they are not received.
When you ping the website, the IP address that is returned is different when if it runs through CloudFlare compared to what we normally see when the website is not running through cloudflare.
My question is, when the site is running through CloudFlare, will it always return the same IP when the address is pinged? If so, i guess we can amend/add a new spf record for the new address. If the address always changes (which I suspect it might?), what is the best way to set up the SPF record to enable sending on the emails?