Keep your mail out of spam: how to check and repair SPF, DKIM and DMARC with cPanel Email Deliverability
1. Why it matters
Large mail providers such as Gmail, Outlook.com and Yahoo send mail to spam, or refuse it entirely, when they cannot verify who sent it. Three DNS records prove the sender's identity:
- SPF: Says which servers may send mail on behalf of your domain.
- DKIM: Adds a digital signature to every outgoing message, proving it was not changed on the way.
- DMARC: Tells the receiving server what to do if SPF and DKIM fail, and lets you receive reports.
cPanel provides suggested records, prepared with the server's real values, on the Email Deliverability page; you do not have to work out the values yourself.
2. Check the status
- On the cPanel home page, open Email Deliverability in the Email section.
- The page lists the domains on your account. The Email Deliverability Status column shows one of two states:
- Valid: The records are correct; nothing to do.
- Problems Exist: The faulty records are listed in brackets (for example DMARC, DKIM, SPF).
- Click Manage on the row of the domain with problems.
The Repair button on the row only works if your domain's DNS is managed on this hosting server. If the button is greyed out and hovering over it shows "Automatic repair is not available", your DNS is hosted elsewhere; add the records yourself as in section 4.
3. Read the suggested records (Manage page)
The Manage the Domain page has a separate section for each record. Each section shows its status at the top right and, in the Suggested … Record box, the record's Name and Value fields.
DKIM
- In the DKIM section, the Name field looks like
default._domainkey.ornekfirma.com.. - The Value field is a long text starting with
v=DKIM1; k=rsa; p=…. Use Copy below the field to copy it; do not type it by hand.
The View The Private Key link shows the server's private key. Do not add this key to DNS and do not share it; only the text in the Value field goes into DNS.
SPF
- The SPF section lists, in a grey box, the mechanisms your record must include (the server's IP address and
include:_spf.gyrohosting.com). - The suggested record's Name is your domain itself; the Value looks like
v=spf1 +mx +a … ~all. - If another service also sends mail from your domain (a newsletter tool, another mail service), use Customize to add that service's mechanism to the same record.
A domain must have only one SPF record. Adding a second v=spf1 record makes SPF invalid altogether. If you already have a record, merge the required mechanisms into it rather than adding another.
DMARC
- In the DMARC section, the suggested Name is
_dmarc.ornekfirma.com.and the Value isv=DMARC1; p=none;. p=noneonly monitors and does not block mail; it is the right choice to start with. Once SPF and DKIM have worked without problems for a few weeks, you can consider changing the policy top=quarantine.
Reverse DNS (PTR)
The REVERSE DNS (PTR) section at the bottom of the page concerns the server's IP address; on shared hosting it is not a record you can set. If the other three records are correct and only this one shows a problem, open a support ticket.
4. Repair: add the record in the right place
Where to add the record depends on where your domain's nameservers are.
A) DNS is on the hosting server: Click Repair in the list, or use the Install The Suggested Record button in each section on the Manage page. cPanel adds the record for you.
B) DNS is on Gyro DNS: Copy the Name and Value of each suggested record and add them as TXT records in the Gyro DNS panel. The steps are in guide L10.
C) DNS is with another provider (your registrar, Cloudflare, etc.): Create a new TXT record in that provider's DNS panel:
- Enter the suggested name in Name / Host. Some panels add the domain automatically; in that case type only
default._domainkeyor_dmarc, and use@for SPF. - Paste the value you copied from cPanel into Value / Content.
- Save. Repeat for DKIM, SPF and DMARC separately.
In this case do not use Install The Suggested Record on the Manage page; the record would only be added to the server's local zone and would not be published to the world.
5. Check
- Wait for the DNS change to propagate; it usually takes a few minutes but can take a few hours depending on the record's TTL.
- Open the Email Deliverability page again. The status should be Valid.
- Send a test message from your hosting address to a personal Gmail address. Open it in Gmail and choose Show original from the ⋮ menu: the SPF, DKIM and DMARC lines should show PASS.
6. Common problems
| Symptom | Cause | Fix |
|---|---|---|
| The Repair button is greyed out | DNS is not managed on this server | Add the records in the panel where your DNS is (Gyro DNS: L10). |
| I added the record but the status still says Problems Exist | DNS is still propagating, or the record name is wrong | Wait a few hours; make sure the domain is not repeated at the end of the name (_dmarc.ornekfirma.com.ornekfirma.com). |
| SPF "permerror" or invalid | The domain has two separate SPF records | Merge all mechanisms into a single v=spf1 record. |
| The DKIM value is rejected | The long value was cut, or quotes or spaces were added | Take the value with Copy; if the panel wants long TXT values split, use the Split view. |
| Mail still lands in spam | The records are fine but the content or sending habits are the problem | For bulk sending, use a newsletter tool; check the delivery record in Track Delivery (B30). |
| Only Reverse DNS shows a problem | It concerns the server's IP | Open a support ticket. |
7. Frequently asked questions
Do I need all three: SPF, DKIM and DMARC?
Yes. Large mail providers look for SPF and DKIM as a basic requirement, and DMARC is increasingly expected. Setting up all three together is the safest route.
Is it safe to click Repair?
Yes. If DNS is on this server, Repair only adds or corrects the suggested records. If you have extra SPF mechanisms for another provider, check the suggested record on the Manage page first.
Another service also sends mail from my domain. What should I do?
Use Customize on the SPF record to add that service's include: mechanism, and add the service's own DKIM record separately. Do not split SPF into two records.
Does DMARC p=none protect my mail?
p=none does not block forged mail; it only monitors. Once SPF and DKIM work without problems, p=quarantine sends forged mail to spam.
When does the change take effect?
It depends on DNS propagation; usually minutes, at most a few hours.
Do I need to add the DKIM private key to DNS?
No. Only the public key in the Value field (p=…) goes into DNS; the private key stays on the server.
If your team's mail delivery rate is critical to your business, take a look at Business Mail, a separate product from hosting email. We compare the plans in guide G01.
Related guides
- L10: Setting up SPF, DKIM and DMARC records in Gyro DNS
- B25: Using hosting email from Gmail
- B29: Spam filters, blocklists and allowlists
- B30: My email was not delivered: Track Delivery
- B21: Creating an email account in cPanel
Thanks for your feedback!
