CPanel Email Security
Introduction
One of the most common problems website owners face is their emails landing in recipients’ spam folders, or attackers exploiting their domain to send fraudulent messages (spoofing). Fortunately, cPanel provides built-in tools to secure your email and establish its authenticity — most importantly, SPF, DKIM, and DMARC records, along with spam-filtering tools like SpamAssassin. In this article, we explain each tool and how to configure it correctly.
What Is SPF (Sender Policy Framework)?
An SPF record is a DNS record that specifies which servers are authorized to send email on behalf of your domain. When a message arrives, the recipient’s server checks whether the sending server is listed in your domain’s SPF record; if not, the message may be flagged as suspicious.
For More Details Please Contact Us
How to enable it in cPanel:
1. Go to the Email section, then Email Deliverability.
2. Find your domain and click Manage or Repair if the record is missing.
3. cPanel will automatically suggest a correct SPF record that you can add to your DNS zone.
What Is DKIM (DomainKeys Identified Mail)?
DKIM adds an encrypted digital signature to every outgoing message from your domain, allowing the recipient’s server to verify that the message wasn’t tampered with in transit and that it genuinely originated from your domain.
How to enable it in cPanel:
DKIM is usually enabled automatically when a domain is created. You can check its status and DNS record from the same Email Deliverability page.
What Is DMARC (Domain-based Message Authentication)?
DMARC works on top of SPF and DKIM, telling receiving servers what to do with messages that fail SPF or DKIM checks (reject, quarantine as spam, or allow through), and lets you receive periodic reports about attempts to spoof your domain.
How to enable it:
From the same Email Deliverability page, check whether a DMARC record exists. If not, you can add one manually via Zone Editor using a format similar to:
v=DMARC1; p=quarantine; rua=mailto:[email protected]
Spam Protection with SpamAssassin
cPanel includes the built-in SpamAssassin tool for filtering suspicious incoming messages:
1. Go to the Email section and select Spam Filters.
2. Enable the Enable Spam Filters option.
3. Adjust the sensitivity (Spam Score) to suit your needs; a lower value means higher sensitivity.
4. You can choose to route suspicious messages directly to a Spam folder instead of the main inbox.
Additional Tips for Securing Your Email
- Use strong, complex passwords, and enable two-factor authentication where your mail client supports it.
- Regularly check the Email Deliverability log in cPanel to make sure there are no issues with your records.
- Avoid sharing your email login credentials with any untrusted party.
- Keep the mail clients on your devices updated to close security gaps.
Frequently Asked Questions (FAQ)




