How to set up SPF, DKIM, and DMARC records for cPanel email
Configure the SPF, DKIM, and DMARC records to your domain's DNS to help receiving mail servers verify that messages sent from your cPanel email accounts are legitimate. These records improve email deliverability and help prevent your emails from being flagged as spam.
First, obtain the required SPF, DKIM, and DMARC values from cPanel, and then add these records to the DNS zone where your domain is managed.
Get the SPF, DKIM, and DMARC records from cPanel
cPanel generates the SPF and DKIM records required for your email accounts. Follow these steps to locate the values:
- Log in to your cPanel.
- Under Email, click Email Deliverability.
- Locate your domain name and click Manage.
- Copy the recommended SPF, DKIM, and DMARC record details. You will need these values when updating your DNS settings.
Have the DNS records ready as shown in the table below:
| Record | Record type | Name | Value |
|---|---|---|---|
|
SPF |
|
|
The SPF value generated by Email Deliverability, beginning with |
|
DKIM |
|
|
The DKIM value generated by Email Deliverability, beginning with |
|
DMARC |
|
|
|
Add the records to your DNS zone
You must add the cPanel SPF, DKIM, and DMARC records to the correct DNS zone.
The location depends on what name servers your domain is connected:
| Name servers | Where your DNS is managed | How to add the records |
|---|---|---|
|
ns1.vodien.com and ns2.vodien.com |
Vodien Account Manager |
|
|
ns100.vodien.com and ns101.vodien.com |
cPanel for Linux hosting |
|
|
Other name servers |
Your third-party DNS provider |
Follow your DNS provider's instructions |
You can use the following steps that apply to most DNS management platforms, including the Account Manager and cPanel. Follow them in the place where your domain’s DNS is managed:
- Sign in to the service that manages your domain's DNS records.
- Open the DNS zone for your domain.
- Add a
TXTrecord for SPF, using the name and value from cPanel. If an SPF record already exists, edit it instead. - Add a
TXTrecord for DKIM, withdefault._domainkeyas the host name. - Add a
TXTrecord for DMARC, with_dmarcas the host name. - Save your changes and allow time for DNS updates to propagate.
In the DMARC value, replace <EMAIL-ADDRESS> with the address that should receive DMARC reports (for example, [email protected]). The p=none setting only monitors your email without blocking anything, making it a safe starting point. Once reports confirm that your messages pass SPF and DKIM checks, you can update it to p=quarantine or p=reject.
Before creating a new SPF record, check whether an existing TXT record already begins with
v=spf1. If one exists, update the current record instead of adding a second SPF entry. Having multiple SPF records causes SPF validation to fail, which may affect email delivery and authentication results.