No one wants their legitimate email to be marked as spam by recipients. No one wants to receive spam in their inbox. Dealing with a blacklisted domain is time-consuming for website owners and email subscribers. Below we cover how to improve email authentication for emails sending from your domain and server while reducing the amount of spam your email accounts receive in the inbox.
DKIM & SPF
Domain Key Identified Mail (DKIM) and Sender Policy Framework (SPF) ensure an email hasn’t been modified since departing the original sender and only approved servers are sending emails from a domain respectively. You can read more about how both work to block spam in our more in-depth article. To enable each requires the press of a button.
- Login cPanel.
- Select Authentication.
- Enable DKIM and SPF.
Enable DKIM & SPF by Default on VPS
VPS users can set SPF and DKIM to be enabled by default in WHM Tweak Settings for newly created cPanel accounts.
- Login WHM as root.
- Select Tweak Settings.
- The easiest way to find both settings is to search “newly created account.” Once you Select On for DKIM and SPF, press Save.
Domain-based Message Authentication, Reporting and Conformance (DMARC) ensures email is properly authenticating against DKIM and SPF standards and blocks any fraudulent activity. Its an easy way for email senders and receivers to determine whether a given message is legitimate and what to do with spam emails. For example, a strong DMARC record prevents Mail Delivery Failed emails stating you attempted to email accounts you’ve never emailed and that look illegitimate.
- Login cPanel.
- Search and select Zone Editor. Older cPanel accounts may instead have Advanced Zone Editor.
- Select Add Record to create a TXT record to enter the DMARC record.
Below is a basic addition added to the Zone Editor:
v=DMARC1; p=reject; sp=none; rf=afrf; pct=100; ri=86400For the highest authentication, add the following:
PTR / Reverse DNS Record
An IP address Pointer (PTR) Record looks like a subdomain but is the best way for VPS / Dedicated customers to authenticate email from your server. The PTR would replace anything using your current server hostname – cPanel / WHM URLs and email settings. For example, vps12345.inmotionhosting.com could become secure.domain.com or semail.domain.com.
To start the process, read the section “Changing Your Server’s Hostname” in our VPS as a Mail Server guide and decide on a PTR name which would apply to the entire server. You should contact our Live Support for additional assistance. The PTR request takes up to 24 hours to complete. If you have issues logging into cPanel or WHM during that time, you can do so via AMP.
Note: All above DNS changes may require ~4-24hrs for propagation. Updating the Start of Authority (SOA) in WHM Edit DNS Zone (for VPS/Reseller accounts) can also ensure DNS records update within 24 hours.
SpamAssassin, or Spam Filters on newer cPanel accounts, filters incoming spam received by email accounts with a score rating system determining how many suspicious items are allowed in an email before marking it as junk. You can also blacklist email addresses.
- Login cPanel.
- Select SpamAssassin or Spam Filters.
- Press Enable for the process and the Spam box.
- Edit the Score settings.
These changes are immediate but don’t affect already received emails.
SpamExperts to Block Spam Remotely
Shared hosting accounts can use SpamExperts to block spam remotely by editing your MX records in cPanel and logging into your SpamExperts account. You can read more in our SpamExperts education channel.
Note: You’ll need to contact our Live Support to enable SpamExperts beforehand.
Sometimes it’s helpful to set email filters in cPanel to redirect emails to spam. Common examples include emails with explicit words or the subject Mail Delivery Failed. Email filters allow more customization and shouldn’t be confused with forwarders.
Feel free to read our more in-depth article covering how emails can be labeled as spam internally or externally by other email providers.