Set up and verify SPF, DKIM and DMARC for your email
This guide helps recipients verify email sent from your domain. Three settings work together: SPF identifies authorised sending servers, DKIM adds a verifiable signature to a message, and DMARC checks whether those identities align with the visible sending domain.
These records do not create mailboxes or guarantee inbox placement. If you cannot receive email, first check MX records. For an application's connection error, check the account setup.
The recipient server evaluates these identities together.
- SPF · Sending permission
Is this server authorised for the technical sending domain?
- DKIM · Message signature
Can the message’s domain signature be verified?
- DMARC · Domain alignment
Does the SPF or DKIM identity align with the visible From domain?
Passing authentication does not guarantee that a message will reach the inbox.
Before you start
Open these tools: The domain's authoritative DNS panel, your email provider's administration interface and a separate account that can receive test messages.
- Confirm that you are authorised to manage the domain and sending services.
- Save the existing TXT records. TXT is the DNS record type that holds text values.
- Use the actual values supplied by your provider below. Do not publish example domains as your own records.
1. List every service sending from your domain
- List staff mailboxes.
- Add the website, CRM, support system, newsletter service and order notifications. A CRM is the application you use to manage customer relationships.
- Record the domain each service sends from.
- Obtain each provider's SPF and DKIM instructions. Using Google Workspace for staff email does not automatically make the website send through Google.
| Method | What does it check? | Where do you get the setting? |
|---|---|---|
| SPF | Is this server authorised to send for the message's technical sending domain? | Each actual sending provider |
| DKIM | Can the message's domain signature be verified? | The provider that actually sends the message |
| DMARC | Does the SPF or DKIM domain align with the visible From domain? | The policy chosen by the domain administrator |
SPF checks the envelope sender: the technical address used during message delivery. It can differ from the From address the recipient sees on screen.
2. Use one SPF record
Where? At the authoritative DNS provider holding the records used on the internet.
- Find the TXT record starting with
v=spf1for the relevant domain. - Add the new provider's authorisation to the existing arrangement. Do not create a second SPF record at the same name.
- Check that other legitimate senders remain included.
- Compare the record with your provider's instructions and save it.
SPF has a limit of 10 DNS-querying terms. The include, a, mx, ptr and exists mechanisms and the redirect modifier share this limit. Nested include evaluations use the same budget; ip4, ip6 and all do not count towards it. If you use many sending services, validate the combined record with your provider.
Do not add arbitrary IP addresses or include values. Do not move to a strict -all policy until every legitimate source is identified; this policy marks sources outside the list as SPF failures.
If you send through cPanel, review Email Deliverability if available for your service. Use the external provider's instructions for external email. Publish changes where DNS is actually managed; a recommendation in cPanel does not update external DNS.
Open the cPanel Email Deliverability warning
- Open Email → Email Deliverability on the cPanel home page.
- Read Email Deliverability Status for the relevant domain. Wait for loading to finish before assessing the result.
- Click Manage on that row. Check DKIM, SPF, DMARC and Reverse DNS (PTR) separately.
- Compare suggested SPF sources with the existing record. Preserve authorisations for any external providers that also send your email.
Email Deliverability checks the domain’s mail-related DNS records.


Step 1: Read which records the warning covers
- Read which records the warning covers
Problems Exist lists DMARC, DKIM, SPF and Reverse DNS here. It does not describe the outcome of a particular message.
- Use Manage to open details
Open Manage on your domain’s row. Repair is unavailable in this example because DNS is managed by another provider.
The real domain is masked. DNS records were not changed during capture.
Preserve legitimate sending sources when adding a provider.


Step 1: Understand which server is being authorised
- Understand which server is being authorised
The ip4 suggestion identifies this cPanel server. Keep authorisations required by other email providers.
- Edit one SPF record at the authoritative DNS provider
If DNS is external, manage the record there. Merge legitimate senders instead of creating a second v=spf1 record at the same name.
Name and Value belong to the demo account and are masked; use the actual values supplied for your own service.
What does “This system does not control DNS” mean? The records used on the internet are managed outside this cPanel server. Publish the suggested record at your authoritative DNS provider. Repair may be unavailable; Install The Suggested Record in the details may add only a local record, without fixing external DNS. After changing a record, compare the DNS response with cPanel's check again.
3. Obtain DKIM from the actual sending service
A selector is the name used to identify a DKIM key in DNS. Do not guess the key or selector.
- Obtain the DKIM record type, name and value from the sending provider's administration interface.
- Add it at the authoritative DNS provider exactly as supplied. Some providers use TXT; others use CNAME.
- If the provider requires a separate activation step, complete it.
In Google Workspace, an administrator selects the domain in Gmail's Authenticate email settings and generates the record. After adding the supplied TXT name and value to DNS, complete Start authentication. Use the official instructions below for current screens and permission requirements.
Different selectors from several services can coexist. Do not replace a working selector without a plan. DNS contains the public key. Never publish the private DKIM key in DNS or a support message.
Copy the cPanel DKIM recommendation correctly
Find Suggested “DKIM” (TXT) Record under Email Deliverability → Manage → DKIM. Name contains the record name; Value contains the public key to publish in DNS. Copy both from your own account. If the DNS panel appends the domain automatically, check that it is not added twice.
The cPanel recommendation is for email sent by this server.


Step 1: Read the DNS authority warning
- Read the DNS authority warning
This system does not control DNS means the record must be published elsewhere. A local Install operation will not fix public DNS in this case.
- Use Name and Value together
Copy Name and Value from your own account in the format your DNS provider requires. Demo record values are hidden here.
- Do not share the private key
DNS uses the suggested public key. The key behind View The Private Key must not be placed in DNS or a support message.
The private key was not viewed and Install The Suggested Record was not used.
View The Private Key is a separate action. You do not need to open the private key to publish DNS. This recommendation contains only this server's DKIM key; use the selector and value supplied by Google Workspace or another service for email sent through that service.
4. Start a new DMARC policy with monitoring
DMARC includes a policy telling recipient servers what you request when authentication fails.
- Verify that SPF and DKIM work first.
- For a new setup, decide who will review reports. Use an address you control or an authorised reporting service.
- Prepare the DMARC TXT record at
_dmarc.example.com, replacingexample.comwith your domain. - Consider starting with
p=nonefor monitoring. This policy does not request rejection or quarantine for DMARC failures; it is not the final enforcement stage. - After reports confirm legitimate senders, plan a move to quarantine or rejection.
For reports: rua identifies the aggregate reporting destination. Without it, you will not receive regular aggregate reports. Sending reports to another domain may require additional authorisation.
Do not weaken an existing, working quarantine or reject policy merely to follow this guide. For DMARC to pass, at least one passing SPF or DKIM identity must align with the visible From domain. “SPF pass” for an unrelated domain is not sufficient.
Separate cPanel DMARC and reverse DNS warnings
Compare the recommendation under Manage → DMARC with your domain policy. Do not install the proposed value before reviewing your senders and existing policy. Check DMARC alignment in the headers of a real message.
These sections depend on different records and permissions.


Step 1: Plan the DMARC policy
- Plan the DMARC policy
Compare the suggestion with your working policy. Do not tighten it before verifying legitimate senders or weaken a working policy without a reason.
- Check PTR and HELO with the provider
This example says the HELO name does not resolve to an IP. PTR is managed by the IP owner; it is not an ordinary domain TXT record.
DNS and PTR were not changed. These warnings describe the initial state of this demo environment.
Reverse DNS (PTR) maps the sending IP address back to a hostname. HELO is the name the mail server uses to introduce itself during SMTP. This example reports that the HELO name does not resolve to an IP address. Review the hostname's A record, sending IP and PTR together. The IP owner usually manages PTR; for a VPS/VDS, review Reverse DNS in the customer portal, or contact your provider. Adding an arbitrary domain TXT record will not fix PTR.
5. Compare DNS with the result on a received message
DNS check — on your own computer: If dig is installed, use these read-only terminal queries; they do not change records. Replace example.com with your domain and selector with the provider's selector. If DKIM uses CNAME, change TXT to CNAME in the second query.
dig TXT example.com +short
dig TXT selector._domainkey.example.com +short
dig TXT _dmarc.example.com +short
If you do not have dig, you do not need to install software on a server for this step. Review the authoritative DNS panel and your provider's validation result instead.
Message check — in the recipient account:
- Send a test from every service on your list to the separate test recipient.
- In Gmail, open Show original on the received message.
- Review SPF, DKIM and DMARC in
Authentication-Results. - Check which domain was authenticated as well as whether the result says
pass.
DNS caches can delay the visibility of new records. Seeing the correct value in a panel and seeing a received message pass authentication are separate checks.
Make the final check in the account receiving your test.
- DNS record published
The correct record is at the domain’s authoritative DNS service.
- Test every sender
Send a separate test from staff email, the website, newsletters and other senders.
- Recipient-side result
Read the outcomes and authenticated domains in the original message view.
SPF pass for an unrelated domain does not by itself pass DMARC for your visible From domain.
6. Inspect delivery with cPanel Track Delivery
Correct authentication records do not explain every missing message. Open Email → Track Delivery on the cPanel home page. The report covers messages handled by this server within its retention period; it does not list every message sent by an external email provider.
- Enter the affected recipient in Recipient Email (optional) and click Run Report.
- Use Show All to clear the recipient filter and view available records. Show Blocked & Failed shows delivery failures.
- Check Show Successes, Show Deferred, Show Failures and Show In-Progress. Make sure the filters do not hide the outcome you need.
- If a record exists, match Sent Time, Recipient and Result to the same message. The information icon in Actions opens the record's details. Time fields use your browser's timezone.
DNS authentication and message delivery records are separate checks.


Step 1: Search by recipient or show all records
- Search by recipient or show all records
Enter the recipient in Recipient Email and use Run Report. Show All clears the recipient filter and lists available records.
- Check status filters
Show Successes, Show Deferred, Show Failures and Show In-Progress cover different states. Selecting failures alone hides successful records.
- Read an empty result with the retention period
This example shows 0 records and No records found, with 10 days of retention. It is not proof that a test message reached the recipient.
No email was sent externally for this capture. No message row or successful delivery result was fabricated.
| Result | How should you interpret it? |
|---|---|
| Success / Delivered | A server delivery record. It does not guarantee inbox placement or that the recipient read the message. |
| Deferred | Delivery has been postponed and the server may retry. Read connection or timeout details in Result. |
| Failure / Error | Inspect the permanent error or rejection reason together with Result and any bounce message. |
| In-Progress / Unknown | The operation may still be running or the outcome may not be final. Check the same message and time again later. |
| No records found | Check filters, retention and whether the message was actually sent through this server. |
After Show All, this example shows 0 records / No records found and 10 days of retention. These are the demo account's actual initial results; no successful test delivery is shown. Read the retention period on your own screen. A route diagram by itself also does not prove the message reached the recipient.
For help, include sender and recipient addresses, the approximate time, any message ID and the Result text in a secure support request. Do not include an SMTP password or private DKIM key.
Expected result and common errors
Successful result: Tests from every legitimate service show the expected SPF/DKIM domains and DMARC alignment.
- SPF
permerror: Check record syntax, duplicate SPF records at the same name and the lookup limit. - DKIM failure: Check the selector, complete public key and whether signing is enabled at the sender.
- Authentication passes but the message is in spam: Investigate bounce codes, content and sending reputation separately. Do not disable authentication.
To revert an incorrect change, restore the saved record while preserving other legitimate senders. Do not post full message headers publicly. Send necessary personal information only through a secure support channel.
Related guides
- DNS for websites and email
- Email account and client setup
- Preserve email records when changing nameservers