Email Deliverability for Hosting Clients: SPF, DKIM, and DMARC

Published on

How to ensure your hosting clients' emails actually reach inboxes. Covers SPF, DKIM, DMARC configuration, and troubleshooting deliverability issues.

Written by Jochem, Infrastructure Expert, 5-10 years experience in game server hosting, VPS infrastructure, and 24/7 streaming solutions. Read author bio →

Half your client support tickets will be "my emails go to spam." Proper email authentication configuration solves 90% of these issues.

The Three Pillars

ProtocolPurposeWhat It Does
SPFSender authorizationTells receiving servers which IPs can send email for a domain
DKIMMessage authenticationDigitally signs emails to verify they haven't been altered
DMARCPolicy enforcementTells receivers what to do with emails that fail SPF/DKIM

SPF Configuration

An SPF record is a TXT DNS record:

v=spf1 include:_spf.yourhostingserver.com a mx ~all
ComponentMeaning
v=spf1SPF version
include:Authorize another domain's servers
aAuthorize the domain's A record IP
mxAuthorize the domain's mail server IPs
~allSoft fail for other sources

Common Mistakes

MistakeImpactFix
Missing SPF recordHigh spam rateAdd one immediately
Multiple SPF recordsBoth ignoredCombine into one
Too many DNS lookups (>10)SPF breaksUse fewer includes
Using -all too earlyBlocks legitimate emailStart with ~all, move to -all

DKIM Configuration

DKIM adds a cryptographic signature to every outgoing email.

Setup in cPanel

  1. Go to Email > Authentication
  2. Enable DKIM
  3. Copy the DKIM DNS record
  4. Add it to the domain's DNS as a TXT record

The DNS record looks like:

default._domainkey.domain.com TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEB..."

DMARC Configuration

DMARC ties SPF and DKIM together with a policy:

_dmarc.domain.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@domain.com"

DMARC Policies

PolicyMeaningWhen to Use
p=noneMonitor onlyInitial setup, gathering data
p=quarantineSend failures to spamAfter verifying SPF/DKIM work
p=rejectBlock failures entirelyFull confidence in authentication

Start with p=none for 30 days. Review reports. Then move to p=quarantine, then p=reject.

Testing Email Authentication

Online Tools

ToolURLTests
MXToolboxmxtoolbox.comSPF, DKIM, DMARC, blacklists
Mail Testermail-tester.comFull delivery scoring
Google Postmaster Toolspostmaster.google.comGmail-specific delivery

From Command Line

# Check SPF
dig TXT domain.com | grep spf

# Check DKIM
dig TXT default._domainkey.domain.com

# Check DMARC
dig TXT _dmarc.domain.com

Deliverability Troubleshooting

SymptomLikely CauseSolution
All emails to spamMissing SPF/DKIMConfigure both
Gmail blocks emailsIP blacklistedCheck MXToolbox, request delisting
Outlook rejectsDMARC reject policy with issuesFix SPF/DKIM alignment
Intermittent deliveryShared IP reputationConsider dedicated IP
Specific recipient bouncesRecipient server configContact recipient's admin

Best Practice for Resellers

Set up SPF, DKIM, and DMARC for every new client account during provisioning. Don't wait for the "my emails go to spam" ticket.

Automating this in your account provisioning saves hours of support time and makes your hosting look professional from day one.

Space-Node's reseller hosting includes proper email infrastructure with clean IPs and server-level DKIM configuration, giving your clients' emails the best chance of reaching inboxes.

Jochem

About the Author

Jochem, Infrastructure Expert, expert in game server hosting, VPS infrastructure, and 24/7 streaming solutions with 5-10 years experience.

Since 2023
500+ servers hosted
4.8/5 avg rating

I specialize in Minecraft, FiveM, Rust, and 24/7 streaming infrastructure, operating enterprise-grade AMD Ryzen 9 hardware in Netherlands datacenters.

View my full bio and credentials →

Launch Your VPS Today

Get started with professional VPS hosting powered by enterprise hardware. Instant deployment and 24/7 support included.

Email Deliverability for Hosting Clients: SPF, DKIM, and DMARC