Email Authentication

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

  1. Log in to cPanel.
  2. Open Email → Email Deliverability.

Email Deliverability en cPanel

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

Reparar o administrar la autenticación del dominio

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

Instalar el registro DKIM o SPF sugerido

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.

Estado del registro PTR en Email Deliverability

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:

  1. Go to Domains → Zone Editor.
  2. Under the domain, click Manage.
  3. Click Add Record and choose TXT.
  4. Fill in:
    • Name: _dmarc if the form appends the domain automatically. If it requests the full name, use _dmarc.yourdomain.com. with the trailing dot, and change yourdomain.com to yours.
    • TTL: 14400.
    • Type: TXT.
    • Value: v=DMARC1; p=none.
  5. 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 _dmarc or 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=none until 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.

  • autenticacion cpanel, autenticacion de correo, email authenticaction, registro dkim, registro spf, registros dmarc
  • 52 Users Found This Useful
Was this answer helpful?

Related Articles

How to delete messages using WebMail

This article explains how to view and delete messages in Roundcube, and how to delete them from...

Webmail - Unable to access my messages

This article explains why Webmail might not let you view or save messages, and how to check your...

How to save copies of sent messages using Webmail

This article explains how to save a copy of sent messages in Roundcube, the hosting's current...

Catch-all mailbox (Default Address)

This article explains what a catch-all mailbox is and how to enable or disable it using cPanel's...

How to enable SpamAssassin

This article explains how to enable the spam filter in cPanel so that new messages with a high...