Mail from a contact form, an invoice or a WordPress plugin can land in spam if the domain is not authenticated. Gmail, Yahoo and Outlook.com now expect standard DNS records — SPF, DKIM and, for higher-volume senders, DMARC — before they will treat the message as coming from you. This guide shows how to set those records in cPanel, how to test them, and how to tighten DMARC in stages.
What Gmail, Yahoo and Outlook actually require
The three consumer inboxes have similar rules, with a split between ordinary senders and bulk senders.
All senders should authenticate outgoing mail with SPF or DKIM. Gmail’s email sender guidelines also ask for valid forward and reverse DNS (PTR) on the sending IP, TLS when the message is transmitted, and messages that follow RFC 5322. Yahoo’s sender requirements say the same for SPF or DKIM, PTR records and RFC 5321/5322.
Bulk senders — domains that send close to 5,000 or more messages a day to personal Gmail, Yahoo or Outlook.com accounts — need more:
- SPF and DKIM, both in place.
- A DMARC record of at least
p=none. - The visible From: domain aligned with the SPF domain or the DKIM domain (preferably both), so DMARC can pass.
Gmail added these bulk rules in February 2024 and, from November 2025, has been tightening enforcement on mail that does not meet them, including temporary and permanent rejections. Outlook.com has been enforcing SPF, DKIM and a DMARC record of at least p=none for domains sending over 5,000 messages a day to Outlook.com, Hotmail and Live since 5 May 2025. Non-compliant high-volume mail is sent to Junk first and may later be rejected.
Even if you send far fewer than 5,000 messages a day, publishing all three records is still the sound default. It protects the domain from simple spoofing and keeps you inside the same rules if volume grows.
How the three records work together
- SPF is a DNS TXT record on the domain (or the envelope domain) that lists the servers allowed to send mail for it.
- DKIM adds a signature to the message, verified with a public key in DNS. Gmail asks for a DKIM key of at least 1,024 bits for mail to personal Gmail accounts, and recommends 2,048 bits where the provider supports it.
- DMARC is a TXT record at
_dmarc.yourdomain.com. It tells receivers what to do if the message fails SPF or DKIM alignment, and can request aggregate reports. The IETF published an updated DMARC specification, RFC 9989, in May 2026. The version tag remains the case-sensitive valuev=DMARC1, and it must be the first tag in the record. Any other value, or a record that does not start with that tag, is ignored.
PTR, or reverse DNS, is not something you set in cPanel’s Zone Editor. It has to match on the sending IP, and is configured by the host. If mail leaves a HosterOcean server, that is already in our hands. If you send through a third-party mail provider, their IPs need correct PTR records too, and those hosts must appear in your SPF record.
Set the records in cPanel Email Deliverability
On current cPanel accounts the usual starting point is Email Deliverability (sometimes listed under Email). It shows each domain on the account and whether SPF, DKIM and DMARC are present and valid.
- Log in to cPanel and open Email Deliverability.
- Find the domain that appears in your From: addresses (the site’s domain, or a subdomain you actually send from).
- If a record is missing or invalid, use the repair or “Install the suggested record” action cPanel offers for that domain. For many accounts this writes the SPF, DKIM and a basic DMARC record for you.
- Wait for DNS to update, then refresh the page. You want all three to show as valid.
If the domain’s DNS is not hosted on the same cPanel account — for example the nameservers still point elsewhere — Email Deliverability will show the records to copy. Add them at the DNS host instead, then return here to confirm they validate.
Editing records in Zone Editor
When you need to change a record by hand, open Zone Editor for the domain and add or edit a TXT record:
- SPF lives on the domain name itself (the apex). A typical cPanel-hosted record authorises that server and ends with
~all(soft fail) or-all(fail). Include every place that sends as you: the cPanel server, and any newsletter or ticket tool, usually with aninclude:mechanism. One SPF record only; do not publish two. - DKIM is a TXT record at a selector name such as
default._domainkey. Enable the key in Email Deliverability rather than inventing a selector. Prefer a 2,048-bit key when cPanel offers it. - DMARC is a TXT record at
_dmarc. A safe first record looks like this:
v=DMARC1; p=none; rua=mailto:[email protected]
Replace the mailbox with an address you read. The v=DMARC1 tag must come first. Do not start with p=, and do not write v=dmarc1 in lower case — RFC 9989 says the value is case-sensitive and the record is ignored otherwise.
Roll DMARC out in stages
- p=none — Publish the record and collect aggregate reports. Mail is not rejected for a DMARC failure. Use this until you know every legitimate sender is aligned.
- p=quarantine — Ask receivers to treat failing mail as suspicious, often the junk folder. Keep reading reports.
- p=reject — Ask receivers to refuse failing mail. Use this only when you are confident no invoice, form or mailing list is still sending unaligned.
Gmail, Yahoo and Outlook.com all accept p=none as the minimum policy for bulk senders. There is no requirement to jump to p=reject on day one. RFC 9989 also deprecated the older pct= tag, so a staged policy change is the clearer path.
How to test the setup
- In cPanel, Email Deliverability should show SPF, DKIM and DMARC as valid for the sending domain.
- Send a message to a Gmail, Yahoo or Outlook.com address you control. In Gmail, open the message, then “Show original”: you want SPF and DKIM to pass, and DMARC to pass once alignment is in place.
- If you added a
rua=address, give it a couple of days and read the aggregate reports. They show which IPs and services are sending as your domain.
If mail still goes to spam after the records validate, look next at the sending IP’s reputation, the PTR record, and whether a plugin is sending From: a different domain than the one you authenticated. On a shared hosting or WordPress hosting account, the sending IP is shared; a well-set DMARC record still helps the domain’s own mail pass the authentication checks.
PTR problems and mail that leaves the server under the wrong hostname are hosting issues. On HosterOcean you can open a ticket, or ask for help under server management if you run the server yourself.
Frequently asked questions
Do I need SPF, DKIM and DMARC if I only send a few messages a day?
Gmail and Yahoo require SPF or DKIM for all senders. DMARC is required once you are treated as a bulk sender, but it is useful at any volume. A p=none record is a low-risk first step.
Is p=none enough for Gmail?
Yes, as a minimum DMARC policy. Gmail’s bulk-sender rules say the policy can be set to none. You should still move to quarantine or reject later, once reports are clean, if you want failing mail treated more firmly.
Where do I add the records if DNS is not in cPanel?
Copy the suggested SPF, DKIM and DMARC values from Email Deliverability and add them as TXT records at the DNS host that actually answers for the domain. You can register or point the domain with us under domains or .pk domains.
Who sets the PTR / reverse DNS record?
The owner of the sending IP, which is usually your host, not a cPanel Zone Editor control. Ask support if a mail tester reports a missing or mismatched PTR.
Will this fix invoices that clients never see?
Authentication is the first thing to fix when invoices, password resets or ticket mail go to spam. Hosts and resellers who bill through WHMCS can also offer clients a clearer channel; our WHMCS WhatsApp module is one way to send those notices besides email, once mail itself is authenticated.
Email on HosterOcean cPanel hosting
Shared and WordPress plans include cPanel, so the Email Deliverability and Zone Editor steps above apply on those accounts. If you would rather have the records checked for you, open a ticket and tell us the sending domain.
Tags:
Related articles
PHP 8.2 support ends on 31 December 2026: how to move WordPress to PHP 8.4 or 8.5 in cPanel
Move a WordPress site off PHP 8.2 in cPanel, with a backup, a staging check and an instant rollback.
Read More →How to Install WordPress on cPanel
Two ways to install WordPress on a cPanel account: Softaculous, or a manual install with a database you create yourself.
Read More →



