This article explains how to enable DKIM and SPF from cPanel and how to publish a DMARC record. These checks make it harder for someone to send mail pretending to be your domain.
What is it for?
The server receiving the message checks the domain's DNS before deciding if the sender is authorized. Each record checks something different:
- SPF indicates which servers can send mail for that domain.
- DKIM signs the message. The receiver compares that signature with a key published in the DNS.
- DMARC tells the receiver what to do if SPF or DKIM do not match the sender's domain.
Having correct records does not force the destination to deliver the mail to the inbox. It reduces rejections due to lack of authentication and forged mailings using your domain.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. For DKIM and SPF, go to Email → Email Deliverability.
Enable DKIM and SPF
- Log in to cPanel.
- Open Email → Email Deliverability.

- Under the domain, click Repair if an issue appears and confirm the change.
- Click Manage to view the record details.

- Under DKIM and SPF, if the status is not valid, click Install the suggested record.

The values in the image are an example. cPanel fills in the ones for each domain. After a few seconds, the screen confirms that the record has been installed.
Review the PTR
On the same screen you can check the status of the PTR, the reverse name of the IP sending the mail.

On shared hosting, that data belongs to the server's IP. If it shows issues, it cannot be corrected from the domain's DNS zone.
Important: Repair and Install the suggested record write to this hosting's DNS zone. If the domain's DNS is managed elsewhere, copy the suggested records and publish them there. If mail goes out through another service, do not install cPanel's SPF or DKIM: use the ones indicated by that service. cPanel's record authorizes this server, not the other one.
Publish DMARC
DMARC does not replace SPF or DKIM. Those two must be valid. If a suggested DMARC already appears in Manage, install it from there. If it does not appear, create it in the DNS zone:
- Go to Domains → Zone Editor.
- Under the domain, click Manage.
- Click Add Record and choose TXT.
- Fill in:
- Name:
_dmarcif the form appends the domain automatically. If it requests the full name, use_dmarc.yourdomain.com.with the trailing dot, and changeyourdomain.comto yours. - TTL:
14400. - Type:
TXT. - Value:
v=DMARC1; p=none.
- Name:
- Click Add Record.
p=none requests reports and does not change delivery. Once DKIM and SPF have been in a valid state for a while, you can switch to p=quarantine. p=reject causes the destination to reject anything that does not authenticate: do not use it while there are legitimate mailings from another system.
Common Issues
- Repair does not appear or cannot install the record: the domain's DNS is not on this hosting. You must publish the values on the DNS server used by the domain.
- After installing SPF, other mailings fail: that mail goes out through another service and the new SPF does not include it. You must use the sender's record, or add that service to the SPF.
- DMARC is not visible: the name ended up duplicated, for example
_dmarc.yourdomain.com.yourdomain.com. Delete the record and create it again with_dmarcor with the full name, depending on what the form requests. - I switched to p=reject and valid mail is being rejected: revert the value to
p=noneuntil SPF and DKIM cover all systems that send with your domain. - The PTR shows as problematic: on shared hosting, the provider reviews this. It cannot be corrected by creating a record in the domain's zone.
If the status remains problematic with the DNS already delegated to this hosting, the PTR does not validate, or you do not know which record to leave because mail goes out through another service, open a ticket from the client portal or consult via the site's online chat.
