Child pages
  • How to Keep your Email Out of the Spam Folder

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Toc no bullet

Overview

This article contains helpful information to make sure that other servers or network do not mark your email as spam. You do not want to send spam from your server. For more information on how to make sure that you do not send spam, read our How to Prevent Email Abuse documentation.

Use email authentication

DKIM and SPF

DKIM (Domain Keys Identified Email) and SPF (Sender Policy Framework) authentication can help verify that email comes from a trusted sender. DKIM is a validation system that detects email spoofing. It allows your mail server to check whether a domain's administrators authorized email from a domain. The email includes a digital signature that your mail server uses to verify the sender's public key in their DNS record.

SPF uses DNS records to prevent email spoofing. If an email message uses falsified sender addresses, SPF uses the DNS record for the sender's domain to detect the modification in the email's header.

Include Page
ALD:_SPFC7Note
ALD:_SPFC7Note

For more information, read our Email Authentication documentation.

DMARC

DMARC (Domain-based Message Authentication, Reporting & Conformance) is a technical specification to help reduce the potential for email-based abuse. A DMARC policy uses DNS to confirm that an email message uses a valid DKIM and SPF record, and that the From: header matches those records. 

Many large email networks require that you use a DMARC policy to help protect their users from spam email. To prevent email rejections or spam flags within these networks, your server must use a DMARC policy.

Configure your server's PTR record

A PTR record resolves an IP address to a domain name. A PTR record resembles a reversed A record. Configure the PTR record of the primary IP address of your server to use the hostname of your server. If you have configured Exim to use a different IP address, ensure that the PTR record of that IP address uses the hostname of your server. 

A record resemble the following example:

Code Block
languagebash
linenumberstrue
server:~ root$ dig mx1.cpanel.net +short
208.74.121.68
server:~ root$ 

PTR records resemble the following example:

Code Block
languagebash
linenumberstrue
server:~ root$ dig -x 208.74.121.68 +short
mx1.cpanel.net.
server:~ root$ 

Spam and other networks

If email networks such as Gmail™, Yahoo, or Outlook mark your server's email as spam, you must identify the reason and resolve the problem. If you have recently resolved an issue with spam on your server or you received a new IP address which previously sent spam, you must notify the remote network. Make certain that you review the bulk sender policy of large email networks.

Bulk email best practices

We recommend that you adhere to the following best practices:

  • Use the same IP address to send all bulk email.
  • Use the same email address in the From: header of your emails.
  • Ensure that your email complies with RFC 5322.
  • If your email uses HTML, ensure that it complies with HTML standards.
  • Ensure that the contents of your email relate to the subject of your email.

Additional documentation

Localtab Group
Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","dkim","spf","email") and label = "whm" and space = currentSpace()

Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","spf","email","dkim") and label = "cpanel" and space in ("ALD")

Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spf","email","dkif","spam") and label = "whm" and space in (currentSpace(),"ALD")

Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("spam","dkim","spf","email") and space = "SDK"