WordPress SPF, DKIM, DMARC Setup for Domain Authentication

WordPress SPF, DKIM, DMARC Setup for Domain Authentication

October 02, 2024

How to Setup SPF, DKIM, DMARC Records for WordPress Email Domain?

If you are managing your email domain in WordPress and emails are going to spam, this article is for you. It will guide you on how to setup the SPF, DKIM, and DMARC records for WordPress emails.

With the help of WordPress DNS records, you can improve email deliverability and prevent email scams. When your email domain is authenticated, inbox providers like Google and Yahoo trust you as a legitimate sender, hence, allowing your emails to the customers' inboxes.

SPF (Sender Policy Framework) specifies which servers are allowed to send emails on your behalf.

DKIM (DomainKeys Identified Mail) makes sure that the email message has not been forged in its transit.

DMARC (Domain-based Message Authentication, Reporting, and Conformance) checks the SPF and DKIM alignment and decides what to do with emails that fail the authentication check.

These authentication records are already added for the domains provided by WordPress. However, if your domain provider is other than WordPress, you need to add the following records in your DNS management zone. First, connect your domain to WordPress and then add the SPF, DKIM, and DMARC records.

NOTE: Before proceeding, make sure you are on the WordPress Business Plan (and the Hosting Feature is activated), only then you will be able to access the email authentication feature.

Connect Domain to WordPress:

  1. On your WordPress dashboard, go to the Domains tab.

  2. Click on your domain name.

  3. Select "View connection setup instruction."

  4. Now click on "Advanced Setup" and then hit the "Start Setup" button.

  5. At step #1, you get the instructions for logging in to your DNS provider: click "I found the domain's setting page."

  6. At step #2, WordPress gives you A and CNAME records for connecting your domain. Add these records to your DNS provider.

  7. Login to your DNS provider. We are using Cloudflare for this instance.

  8. In the Websites tab, select the domain.

  9. Head to the DNS tab and click Add Record.

  10. Now copy the A and CNAME records from WordPress and paste them into the DNS dashboard.

  11. Turn off the proxy status for both record types and click the Save button.

  12. After adding these records, return to the WordPress DNS page and click "Verify Connection."

If your domain is connected to WordPress, you will see the confirmation message on your screen.

Configure WordPress SPF, DKIM, and DMARC Records:

You can only access the SPF, DKIM, and DMARC records if you have a Business Plan subscription. After purchasing the plan, you need to activate the hosting features to enable email authentication.

Activate the Hosting Features in Business Plan:

  1. Open the Domains tab and click on your domain name.

  2. Go to the Hosting Features tab.

  3. Click the "Activate Now" button.

Configure DNS Records:

  1. Now go to the Domains tab and click on your domain name.

  2. On the next window, scroll down and expand the Diagnostics option. Here you will find the WordPress SPF, DKIM, and DMARC records.

Setup WordPress SPF Record:

  1. Open your DNS dashboard and select the record type TXT.

  2. In the Name field, write "@" for rooting.

  3. In the Content field, copy and paste this SPF value: v=spf1 include:_spf.wpcloud.com ~all.

  4. Click the Save button.

If your DNS dashboard already has an SPF record from another source, WordPress will merge the previous value with its SPF record to give you a combined value. Replace your existing record with this merged value.

Is it ok to have multiple SPF records?

Adding more than one SPF record for a domain can cause one of them to stop working. If there is an existing SPF record, you need to merge it with the new SPF value to avoid conflicts.

DmarcDkim.com provides you with a reliable SPF merge tool that seamlessly merges up to 10 SPF records.

Setup WordPress DKIM Record:

In the Diagnostics tab, you have two DKIM values. Add both to your DNS dashboard.

  1. Select the record type CNAME.

  2. Copy the hostname and paste it into the Name field.

  3. Copy the DKIM value and paste it into the Target field.

  4. Repeat the same steps to add the second DKIM record.

IMPORTANT: Turn off the proxy toggle for CNAME records. If the proxy is enabled, it diverts the traffic to your DNS server instead of the email provider server.

Setup WordPress DMARC Record:

The DMARC value provided by WordPress is just for monitoring the emails and it doesn't block or reject emails coming from unauthorized sources. Hence, your domain is not fully scam-proof.

To generate an effective DMAR policy for the WordPress domain, you can use the DmarcDkim.com DMARC Check tool.

This tool helps you setup a strict policy that protects your domain against spoofing attacks and provides you insights into the email performance so you can identify the imposters trying to malign your domain name.

  1. Go to the DMARC Check Tool.

  2. Add your domain name and click Check.

  3. The tool analyzes your domain and provides an initial monitoring (p=none) value. Once it monitors the emails coming from unauthorized sources, it then guides you toward implementing a strict policy to block the imposters.

  4. Copy the TXT DMARC record and paste it into the DNS dashboard.

  5. Sign up for the tool to get actionable insights and DMARC reports.

After adding the WordPress SPF, DKIM, and DMARC records, wait up to 24 - 48 for the servers to verify the DNS records.

If the records do not get verified after 48 hours, there might be a misconfiguration in your DNS setup.

To troubleshoot the email authentication issues, hire a DmarcDkim.com expert.