SPF stands for Sender Policy Framework and it defines the servers that are allowed to send email on behalf of your domain. It is important to note that as of February 2024, Yahoo and Google require SPF in order to send email to these users.
Before setting up an SPF record, you need to identify all the IP addresses that send email for your domain. This includes your own mail servers and any third-party services you use (like email marketing tools).
An SPF record is a TXT record in your DNS. Here’s how to format your SPF record:
v=spf1 ip4:<IP_ADDRESS_1> ip4:<IP_ADDRESS_2> include:<THIRD_PARTY_DOMAIN> ~all
Replace <IP_ADDRESS_1>
, <IP_ADDRESS_2>
, and <THIRD_PARTY_DOMAIN>
with your actual data. Here’s what each part means:
Keep in mind that each domain can only have one SPF record. If you need multiple values, you can extend your existing record.
Log into your domain’s DNS management panel and navigate to the section where you can manage your DNS records. Add a new TXT record with the values you formatted in Step 2.
After publishing your SPF record, it’s important to test it to ensure it’s working correctly. You can use tools like:
Maintaining your SPF record is crucial. Whenever you change mail servers or start using a new email service, you need to update your SPF record. Regularly check and modify your SPF record to ensure it reflects your current email sending practices.
include
statements.