Hi, I want to use SPF record for mail deliverability, and as I read from many articles that it has to contain the hosts or ips allowed to send email, my questions are,
Is this record “v=spf1 +mx +a +ip4:x.x.x.x ~all” required as it suggested from CPanel in account?
- mx point to same ip4:x.x.x.x, is it enough to use mx or also I have to use ip?
- a record is proxied by Cloudflare, is it required?
- if mx record is mail.domain.com and host name is hs.domain.com, have I to put the hostname of the server together with mail.domain.com or not?
- is it recommended to use -all rather than ~all since just this mail server who allowed to use the email?
I want the best recommendation for record to be used and no issues will be faced in future.