How to keep my emails out of spam (SPF, DKIM, DMARC and content)

Gmail, Outlook and other providers decide whether your email goes to the inbox or to spam by looking, among other things, at three DNS records for your domain. Without them your messages look like anyone could have sent them, and since 2024 the big providers reject or send to spam much of the mail that lacks them.

RecordWhat it says
SPFWhich servers may send email on behalf of your domain
DKIMA digital signature proving the message left your server and was not altered
DMARCWhat the receiver should do with mail that fails SPF and DKIM, and whom to notify

Check and fix them in one click (cPanel)

  1. Go to cPanel → Email → Email Deliverability. This tool is in the classic design: if your cPanel has the new design, first click Classic cPanel theme at the top right.
  2. You will see each domain with its status. If it reports problems, click Repair: cPanel publishes the suggested SPF and DKIM records.
  3. Manage shows the details and exact values.

This works if your domain uses our name servers. If your DNS is with another provider (Cloudflare, your registrar, etc.), Repair cannot write there: copy the records shown on screen and create them yourself at that provider. See Changing your hosting DNS.

DMARC: start in monitoring mode

DMARC is created as a TXT record named _dmarc.yourdomain.com in cPanel → Websites and applications → Manage → DNS tab → Add record (classic design: Domains → Zone Editor). A good starting point:

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

With p=none nothing is rejected: you just start getting reports about who sends mail using your domain. Once you confirm all your legitimate mail passes SPF and DKIM, you can move to p=quarantine (to spam) and later p=reject. Jumping straight there without checking can block legitimate mail, such as an e-invoicing platform that sends on your behalf.

If you also send from other services

Google Workspace, Microsoft 365, e-invoicing platforms, online stores or newsletter tools that send “as” your domain must also be in the SPF and have their own DKIM. Two rules:

  • There can be only one SPF record per domain. If a service asks you to “add an SPF”, you actually need to add its part (the include: they give you) to the existing SPF, not create another one. Two SPF records make both fail.
  • Copy the values exactly as the service gives them. One wrong character is enough for verification to fail.

If you are not sure how to combine them, write to us from the portal with what each service asked for, copied exactly, and we will set it up correctly.

What these records do not fix

  • Content. All-caps subjects, a single image with no text or shortened links still count against you.
  • Bulk sending. For newsletters to many recipients, use a bulk email service: the plan's email has an hourly sending limit. See My email does not work.
  • A compromised account. If one of your accounts sends spam, your domain's reputation drops. Use strong passwords and turn on two-step verification.

To check a specific message: cPanel → Email → Track Delivery shows whether it left, whether it was delivered and why it was rejected.

Also, watch how you write your emails

Keep in mind that emails have a scoring system and each provider manages a SPAM filter according to that score, when writing an email note the following points by which an email can be detected as SPAM :

Do not write the whole subject in capital letters

Do not use many exclamation or question marks in the subject

Do not use the "$" sign at the beginning of the subject

Do not use e-mail addresses in the subject

Do not include the words "free" or "viagra" in the body or subject of the message

Do not include more images than text in the body of the mail

Do not write the body of the message in HTML using very large fonts

Do not write the body of the message in HTML using a font color similar to the background color

Do not send mail from an email address that starts with many numbers

Do not send a subscription link or unsubscribe

Not having a signature full of images separately

Send the email both in text format and in html

Also, keep in mind that the recipient emails work under their own anti-spam policy, so there will be entities that take the emails as such, the user must include the recipient's email on their desired white list of emails. < / p>

Finally, keep in mind that from your cPanel you can manage whitelists, blacklists and activate or deactivate the anti spam filter.

More information


Was this article helpful?

mood_bad Dislike 0
mood Like 1
visibility Views: 15346