SPF record contents, is A record required?

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.

A post was merged into an existing topic: I have a problem with my website, I can change the DNS

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.