Implementing SPF, DKIM, and DMARC in cPanel


cPanel simplifies email security by providing built-in tools to manage these records. Follow this step-by-step guide to harden your domain against spoofing directly from your hosting dashboard.


Step 1: Enable SPF and DKIM

In cPanel, these two protocols are managed under the same interface.

  1. Log in to your cPanel account.

  2. Navigate to the Email section and click on Email Deliverability.

  3. Locate the domain you want to secure. If you see a "Problems Exist" warning, click Manage.

  4. For DKIM: Look for the DKIM section. If it is disabled, click Install/Enable. cPanel will automatically generate the private and public keys.

  5. For SPF: cPanel will provide a suggested SPF record.

    • Customizing SPF: If you use third-party services (like Mailchimp or Zendesk), click Customize. Under the Include section, add the domain of your service (e.g., servers.mcsv.net).

    • Click Install-Record to save.


Step 2: Create a DMARC Record

cPanel does not have a dedicated "toggle" for DMARC, so you must add it manually as a DNS record.

  1. Go back to the cPanel home screen and open Zone Editor (under the Domains section).

  2. Click Manage next to your domain.

  3. Click the arrow next to the Add Record button and select Add "TXT" Record.

  4. Fill in the following details:

    • Name: _dmarc.yourdomain.com. (Replace with your actual domain; ensure the dot is at the end if cPanel requires it).

    • TTL: 3600

    • Type: TXT

    • Record: Use a starting policy like this:

      v=DMARC1; p=none; rua=mailto:admin@yourdomain.com

Note: The p=none policy is essential for the first few weeks. It ensures no emails are blocked while you verify that your SPF and DKIM are configured correctly.


Step 3: Verify Your Configuration

After saving your records, you should verify they are live and syntax-correct.

Tool Type Purpose
DNS Checker Confirms the records are visible to the public internet.
DMARC Inspector Validates that your DMARC tag syntax is correct.
Mail Tester Allows you to send a test email to see if your signatures are passing in "real-time."

Moving to Enforcement

Once you have monitored your DMARC reports (sent to the email in your rua tag) and confirmed that your legitimate emails are passing authentication, return to the Zone Editor to update your policy:

  1. Quarantine: Change p=none to p=quarantine. This sends suspicious mail to the recipient's spam folder.

  2. Reject: Eventually, change the record to p=reject. This instructs servers to drop spoofed emails entirely.


Common Troubleshooting:

  • Too many SPF lookups: Ensure your SPF record doesn't have more than 10 "include" statements.

  • Duplicate SPF records: You should only have one TXT record starting with v=spf1. If you have two, merge them into one.


Was this answer helpful?

Still need help?

Our friendly support team are ready to offer assistance with any issues you may be encountering.
Click the button below to open a ticket:
Open Ticket

 WordPress Hosting

Fast hosting for WordPress
Experience the best in Australian WordPress hosting with lightning fast servers, built-in caching, and performance tools.

 Build Your Website

Sitejet Hosting
Build your site fast with a drag and drop editor with no coding required. 140+ quality, templates to get you started.

 Register Domains

It all starts with your domain name
Find the perfect domain and register now with our competitive pricing on all extensions.

 Web Hosting

Fast, local, secure hosting
Full featured hosting on cPanel with multiple server locations around the country.
« Back