SPF and DKIM: what they authenticate and where to set them up
SPF checks whether a server may send for the domain used in the message's technical sender. DKIM verifies a signature from the sending domain and the integrity of the signed parts. Neither of them proves on its own who the person is, nor guarantees that the message will reach the inbox.
| Mechanism | What you need to check |
|---|---|
| SPF | That the real server is authorised in a single SPF TXT record for the domain being evaluated |
| DKIM | That the sender signs and publishes the public key for the selector used |
| DMARC | That SPF or DKIM passes and its domain is aligned with the visible sender |
Where to review the configuration
In cPanel, the old Authentication option has been replaced by Email Deliverability. Click Manage for the domain and review the current and suggested values.
If you send from Microsoft 365, Google Workspace, Brevo or another external service, also set up the authentication that service provides. The cPanel DKIM key does not sign on its behalf.
If the DNS zone is on Cloudflare or another provider, publish the records there. Copy only the public DKIM key; the private one stays in the system that signs.
How to tell whether it works
Send a test through the real route and check the original headers, especially Authentication-Results, Return-Path and the DKIM signature. A DNS record existing does not prove it is being used when sending.
Continue with the deliverability guide to diagnose the whole picture, SPF to add senders and DMARC to define the policy.
You may also find useful
- How to check and improve email deliverability Guide to reviewing SPF, DKIM, DMARC and PTR in cPanel, analysing a message with our email test and d...
- Authenticate a Hostsuar domain in Brevo Explains how to copy the records Brevo provides into the authoritative DNS zone, avoid duplicate SPF...
- Changes to the requirements for sending email to Gmail and Yahoo Summarises Gmail's and Yahoo's current requirements on authentication, DNS, TLS, reputation and easy...
- Manage SPF records Shows how to authorise in SPF the external servers that send on behalf of a domain, using the Email...
Something wrong or out of date? Tell us and we will review it.