Set up SPF, DKIM, and DMARC records for cPanel email
Add SPF, DKIM, and DMARC records to your domain's DNS so other mail servers can confirm that emails from your cPanel email accounts come from you. This helps your emails reach inboxes instead of spam folders. Use the standard SPF record below, get the DKIM value from cPanel, and add all three records where your domain's DNS is managed.
Get your DKIM value from cPanel
cPanel creates the DKIM value for your email. Follow these steps to find it:
- Log in to your cPanel.
- Under Email, select Email Deliverability.
- Next to your domain, select Manage.
- Copy the name and value of the DKIM record and keep them for the next steps.
Use the following DNS records when setting up your email authentication:
| Record | Record type | Name | Value |
|---|---|---|---|
|
SPF |
|
|
|
|
DKIM |
|
|
The DKIM value from Email Deliverability, starting with |
|
DMARC |
|
|
|
Add the SPF, DKIM, and DMARC records to your DNS
Your domain's name servers show where your DNS settings are managed, so checking them tells you where to add your records. To check your domain's current name servers, see How to check where your DNS is hosted section in Crazy Domains DNS article. Once you know your name servers, use the following table to find where your DNS is managed:
| Name servers | Where your DNS is managed | How to add the records |
|---|---|---|
|
|
Account Manager |
To manage DNS records in the Account Manager, see Manage DNS records in the Account Manager. |
|
|
cPanel |
To manage DNS records in cPanel, see Manage DNS records in cPanel. |
|
Other name servers |
Your name server or DNS provider |
Follow your DNS provider's instructions. |
Follow these general steps where your domain's DNS is managed:
- Sign in to your DNS provider and open the DNS records for your domain.
- Add a
TXTrecord for SPF with the name<YOURDOMAIN-COM>and the valuev=spf1 +a +mx include:all._spf.ds.network -all. If an SPF record already exists, edit it instead. - Add a
TXTrecord for DKIM withdefault._domainkeyas the name and the DKIM value from cPanel. - Add a
TXTrecord for DMARC with_dmarcas the name andv=DMARC1; p=none;. - Save your changes.
TXT record that starts with v=spf1, edit that record to use v=spf1 +a +mx include:all._spf.ds.network -all instead of adding a second one. Multiple SPF records cause SPF checks to fail.