After installing Cloudflare my site want send out emails. Ive tried using a txt record with content: @ v=spf1 include:domain.com ~all, but without any result. Cloudflare did pick up my mx records from the mailserver provider as a DNS(not proxy) so all I have done is to include the txt record mention above. The web- and mailserver are not the same provider but that shouldnt be a problem?
Have I done anything wrong? and should the @ be in the content, or can i just put in the name for root?
If CF pick up your MX records from old DNS provider, then your mail settings are saved and running on Cloudflare Network by default. If previously you have all worked without problems, then when you transfer to us it should work further.
I’ve no idea what your server still is - not was - as all properties of your “prior server” stay the same; this is why all records must be correctly set.
I use ProtonMail and this is exactly what my SPF record is:
(It - the domain - stays the same as your mail provider; it’s not changed to your domain. And note the missing mx prior to ~all in your SPF record as well as the missing _ after include:.)