Are your company emails landing in spam? How to set up SPF, DKIM and DMARC in cPanel
Gmail, Yahoo and Outlook increasingly reject unauthenticated messages. How to check and configure SPF, DKIM and DMARC for your company domain, step by step, from cPanel.

Why it matters now
Since February 2024, Gmail and Yahoo require all senders to have at least SPF or DKIM, valid reverse DNS for the sending server and a spam complaint rate below 0.3%. Anyone who sends more than 5,000 messages a day to Gmail needs SPF, DKIM and DMARC, plus one-click unsubscribe (Google, Yahoo).
Since November 2025, Gmail has started to reject, temporarily or permanently, messages that do not follow the rules (Google). Since 5 May 2025, Microsoft has required SPF, DKIM and DMARC from those who send more than 5,000 messages a day to Outlook.com, Hotmail and Live.com (Microsoft).
A small company does not send 5,000 messages a day. But unauthenticated messages end up in spam more often at any volume, and the full setup takes little time.
What SPF, DKIM and DMARC do
- SPF is a TXT record in the DNS with the list of servers allowed to send email for your domain.
- DKIM signs each message with a private key. The public key sits in the DNS, and the recipient verifies the signature.
- DMARC ties the two to the address in the “From” field and tells the recipient what to do with messages that fail the check. It also sends you reports.
Step 1: check where the DNS is managed
The records go wherever the domain’s DNS is managed. If the domain uses the HostON DNS servers, you change them from cPanel. If the DNS is at the registrar or at Cloudflare, you copy there the values that cPanel shows you.
Step 2: SPF and DKIM from “Email Deliverability”
In cPanel, open Email → Email Deliverability. For each domain you see the status of SPF, DKIM and reverse DNS (PTR).
- If the DNS is with us and a problem appears, the “Repair” button writes the correct records.
- If the DNS is elsewhere, “Manage” shows you the recommended values, which you copy to your DNS provider.
Watch out with SPF:
- a domain has a single SPF record. If you have two, the check fails;
- include in it all the services that send from your domain: the hosting server, the newsletter service, the invoicing application, the online shop;
- SPF allows at most 10 DNS lookups (RFC 7208). Too many “include:” entries make the check fail.
External services, such as newsletter platforms, usually have their own DKIM key. They give it to you as a CNAME or TXT record to add to the DNS.
Step 3: add the DMARC record
DMARC is not configured automatically. You add it from Domains → Zone Editor (or at your DNS provider), as a TXT record:
- Name: _dmarc.company.ro
- Value: v=DMARC1; p=none; rua=mailto:dmarc@company.ro
With p=none, recipients do not block anything; they only send you reports to the address in rua. Create the address beforehand. The reports are XML files, which you can read with a free DMARC analysis service.
After a few weeks, when the reports show that all your legitimate services pass the check, move to p=quarantine and then to p=reject. This way, fake messages sent in the company’s name end up in spam or are rejected.
Step 4: test
- Send a message from the company address to a Gmail account.
- In Gmail, open the message, then the three-dot menu → “Show original”.
- Look for the SPF, DKIM and DMARC lines. All three must show PASS.
Repeat the test for each service that sends from the domain: newsletter, invoices, shop orders.
If messages still end up in spam
- Content: avoid messages made of a single image, shortened links and subject lines written in capitals.
- Lists: send only to people who asked for the messages and quickly remove addresses that unsubscribe.
- Volume: for newsletters use a specialised service, not the regular mailbox on your hosting.
- Blacklists: check whether the domain or the IP appears on any blocklist and open a ticket if needed.
In brief
Check SPF and DKIM from “Email Deliverability”, add a DMARC record with p=none, test with Gmail and tighten the policy after reading the reports. Email on your domain is included in all HostON web hosting plans. You will find details on the Professional email page. If you do not know which values to set, open a ticket from your client account or write to us from the Contact page.
Web hosting, VPS and domains at HostON
Servers in Vrancea, Romania, cPanel with LiteSpeed, free SSL, daily backups and free migration. Prices in euros, invoicing in lei (RON) at the National Bank of Romania (BNR) exchange rate.
HOSTON SRL · About us
Current prices are the ones on the product pages, read daily from the client account. The values in the article are approximate, as of the publication date.
Frequently asked questions
The strict rule from Gmail and Microsoft applies to those who send more than 5,000 messages a day. However, DMARC protects you from fake messages sent in the company’s name and helps delivery at any volume. Start with p=none.
No. A domain must have a single SPF record. If you use several services, you add them all to the same record.
p=none only requests reports, without blocking anything. p=quarantine sends messages that fail the check to spam. p=reject rejects them.
In cPanel, under Email → Email Deliverability. If the domain uses the HostON DNS servers, the Repair button writes the correct records. Otherwise, you copy the values to your DNS provider.
Send a message to a Gmail account and open “Show original”. SPF, DKIM and DMARC must show PASS.
Related articles



