SPF is a powerful way to avoid blocking emails as spam. However, SPF configuration is usually for the main domain, and I could not find the settings for the subdomain, and I'm not sure if it is effective at all. I want to configure my mail server on mail.domain.com on a separate server. SPF for the primary domain
@ v=spf1 mx include:domain.com ~all @ v=spf1 a mx ptr ip4:0.0.0.0 ~all
And for the mail server (subdomain)
mail.domain.com v=spf1 mx include:mail.domain.com ~all mail.domain.com v=spf1 a mx ptr ip4:1.1.1.1 ~all
where 0.0.0.0 is the primary IP address of the server, and 1.1.1.1 is the IP address of the mail server. Will this setting work with successful use of mail.domain.com for email (e.g. name@mail.domain.com)?
What other considerations can help avoid marking emails sent from the subdomain as spam?
email dns email-spam spam spf
Googlebot
source share