Tiempo estimado de lectura: 3 minutos

How can I add SPF records to my domain?

SPF (Sender Policy Framework) records help reduce the possibility of your domain being spoofed in spam messages. They can also increase email deliverability to external providers such as Gmail and Outlook.

We must maintain an up-to-date SPF record of all IP addresses used to send email from our domain. This ensures that any email sent from our services passes an SPF check. To use it on your domain, you have to add a TXT record in your DNS.

General rules for SPF records

To verify that everything goes correctly, once you create your SPF record we recommend you to visit this website to verify that everything is correct, remembering that SPF records must comply with these rules:

  1. You must create them as TXT records
  2. You can only have 1 SPF record per domain or subdomain.
  3. You cannot use more than 10 includes within the record, including all its lookups.

Adding SPF prebuilt records:

By default, your hosting account will come with this default record v=spf1 include:spf.stackmail.com a mx -all, which is used to validate the sending of emails from the server. We also have pre-designed records for Google and Outlook business accounts, if these will be your email managers, you can add these pre-designed records very easily:

  1. Go to the server administration panel of the domain in question.
  2. Click on the Manage DNS option in the Domain Names section
  3. Under Preconfigured Settings select the desired option from the drop-down menu
  4. Confirm the registration by clicking on Update DNS as you can see in the following video:
Watch video

Adding Third Party SPF Records:

If, on the other hand, you are going to use the email services of other platforms Sendinblue, Acumbamail, Zoho or others, you will have to manually enter these records, for them you must request the records from your provider and follow the steps below:

  1. Go to the administration panel of the server of the domain in question.
  2. Click on the Manage DNS option in the Domain Names section.
  3. Find the existing DNS record and edit it, remembering that you can only have one per domain or subdomain.
  4. Confirm the record by clicking on Update DNS as you can see in the following video:
Watch video

Structure of an SPF record

Throughout the life of our domain and depending on the amount of external services that we hire and need to send emails on our behalf such as Outlook, Gsuite, Mailchimp, Zendex, etc., we will be required to add an SPF record, these records have the following structure:

v=spf1 include:primer.registro include:segundo.registro include:tercer.registro a mx -all

It is important to know that although an SPF record is nothing more than a TXT record and that, therefore, we can technically add as many as we want, an SPF record must be unique because if not it invalidates all the previous ones, that is why if for example we send emails from our server and for that reason we have the record:

v=spf1 include:spf.stackmail.com a mx -all

And a Google asks us to add the record:

v=spf1 include:_spf.google.com -all

We should never create a new record, but edit the main one, so that it looks like this:

v=spf1 include:spf.stackmail.com a mx include:_spf.google.com ~all

The latter includes both records correctly and the operation can be repeated infinitely.

Other examples of SPF records

Even if you use Zoho Mail or Gsuite or Outlook, etc, if there are emails that you keep sending from the server, for example, emails from your website, it is always necessary to keep the records of the same, if on the contrary, you use other SMTP accounts or APIs, you can delete them, here are some combinations to serve as examples.

My WordPress emails are sent from the server and my inbox is GSuite

v=spf1 include:spf.stackmail.com a mx include:_spf.google.com ~all

My WordPress emails are sent from the server and my inbox is Office 365

v=spf1 include:spf.stackmail.com a mx include:spf.protection.outlook.com ~all

My WordPress emails are sent from the server, my inbox is GSuite and I send mass mailings with Mailchimp.

v=spf1 include:spf.stackmail.com a mx include:spf.mysecurecloudhost.com servidores.mcsv.net a mx -all

My WordPress emails are sent with Sendgrid, my inbox is Office 365 and I send mass mailings with Mailchimp.

v=spf1 include:spf.protection.outlook.com include:sendgrid.net servidores.mcsv.net a mx -all

And so on to infinity, there are as many combinations as there are email providers, the important thing to remember is that we should not create a new record, but edit the existing one with the records we need.

¿Te ha sido util esta lección? Vota para poder enviarnos tu Feedback
No me gusta 0 0 de 0 han encontrado esta lección util.
Vistas: 28

Still have doubts?

We don't, we want to help you

Contact Us

2022 ©️ WAOPRESS. ALL RIGHTS RESERVED. PRIVACY | LEGAL NOTICE | COOKIE POLICIES | HOLA@WAOPRESS.COM