This article explains how to enable DKIM and SPF from cPanel and how to publish a DMARC record. These checks make it harder for anyone to send mail pretending to be your domain.
What is it for?
The server receiving the message checks the domain's DNS before deciding whether the sender is authorized. Each record looks at 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 the records correct does not force the destination to deliver the mail to the inbox. It reduces rejections due to lack of authentication and forged mailings with 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 a problem 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 completes the ones for each domain. After a few seconds, the screen confirms that the record has been installed.
Check the PTR
On the same screen you can view the status of the PTR, the reverse name of the IP sending the mail.

In shared hosting, that data belongs to the server's IP. If it shows problems, it is not fixed from the domain's DNS zone.
Important: Repair and Install the suggested record write to the DNS zone of this hosting. 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. The cPanel record authorizes this server, not the other one.
Publish DMARC
DMARC does not replace SPF or DKIM. Those two have to be valid. If a suggested DMARC already appears under Manage, install it from there. If it doesn't appear, create it in the DNS zone:
- Go to Domains → Zone Editor.
- Under the domain, click Manage.
- Click Add Record and choose TXT.
- Complete:
- Name:
_dmarcif the form adds 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. When DKIM and SPF have been in a valid status for a while, you can switch to p=quarantine. p=reject makes the destination reject what 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 became 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 sending with your domain. - The PTR shows as having issues: on shared hosting, the provider reviews it. It is not fixed by creating a record in the domain's zone.
If the status remains with a problem even though the DNS is already delegated to this hosting, the PTR does not validate, or you don't know which record to leave because the mail goes out through another service, open a ticket from the client portal or inquire via the site's online chat.
