SPF, DKIM and DMARC in plain words: stop your emails landing in spam
Your emails go to spam because receiving servers cannot trust them. Here is what SPF, DKIM and DMARC each prove, how to check them, and how to roll out DMARC safely.

You send a quote from your business address and the client finds it in spam, or never sees it at all. Most of the time the problem is not your wording or your attachment. It is three DNS records that tell the world your email is really yours: SPF, DKIM and DMARC. If you searched "SPF DKIM DMARC" because emails are going to spam, this is the plain-words version, with the checks I actually run.
Why emails going to spam is usually a trust problem
Email was designed decades ago with no proof of who sent a message. Anyone can write From: ceo@example.com on an email. Gmail, Outlook and every serious mail server know this, so they look for proof before they trust a message.
That proof lives in your domain's DNS. When the records are missing or wrong, the receiving server has no reason to believe you, and your message gets a lower score. Low score means spam folder, or a rejection.
This site's own email runs on Hostinger, and when I set it up, the first thing I checked was the email domain settings page in hPanel. It showed SPF, DKIM and DMARC as set up. That page is where most people should start, and I will come back to it.
SPF DKIM DMARC: what each record proves
Think of a letter arriving at a company's front desk.
SPF (Sender Policy Framework) is the list of couriers allowed to deliver for you. It is a TXT record on your domain that names the servers allowed to send email for it. A typical one looks like this:
example.com. TXT "v=spf1 include:_spf.your-mail-provider.example ~all"
The include part points to your provider's list of sending servers. Copy the exact value your host gives you, not one from a blog post. The ~all at the end means "anything else is suspicious". SPF proves: this server is allowed to send for this domain.
DKIM (DomainKeys Identified Mail) is a wax seal on the letter. Your mail server signs every outgoing message with a private key, and you publish the matching public key in DNS under a name like selector._domainkey.example.com. The receiver checks the signature. If the message was changed on the way, or was not signed by you, the check fails. DKIM proves: this message really came from this domain and was not altered.
DMARC (Domain-based Message Authentication, Reporting and Conformance) is the instruction you leave at the front desk: "If a letter claims to be from me and fails the checks, here is what to do with it, and please send me a report." It lives at _dmarc.example.com:
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:dmarc@example.com"
DMARC proves nothing by itself. It tells receivers how to treat failures and where to send reports.
How the three work together
The piece most guides skip is alignment. DMARC does not just ask "did SPF pass?" It asks whether the domain that passed matches the domain in the From address the reader sees.
A message passes DMARC if at least one of these is true:
- SPF passes, and the domain SPF checked matches your
Fromdomain. - DKIM passes, and the signing domain matches your
Fromdomain.
This is why a newsletter tool can pass SPF for its own domain while your mail still fails DMARC: it passed for the wrong domain. The fix is usually to set up DKIM signing for your own domain inside that tool.
It also explains forwarding. When mail is forwarded, the forwarding server is not in your SPF list, so SPF breaks. DKIM usually survives because the signature travels with the message. I ran into the forwarding side of this myself, with Gmail relays rejecting forwarded mail with "550 5.7.1 Message blocked". I wrote about that and the fix in why forwarded business email bounces.
Checking your records in hPanel and with online checkers
In hPanel. If your email is on Hostinger, open the Emails section, pick your domain and look for the domain or DNS settings page. Menu names change over time, but the page I used listed SPF, DKIM and DMARC with a status for each. If something shows as missing and your domain's DNS is managed at Hostinger, it can usually add the record for you. If your DNS lives elsewhere, copy the values into your DNS provider. My guide on pointing your domain to Hostinger explains where DNS records actually live. If you are still choosing a host, you can see Hostinger's email and hosting plans here, and check what your plan includes.
From the terminal. dig shows what the world actually sees:
dig TXT example.com +short
dig TXT _dmarc.example.com +short
dig TXT selector._domainkey.example.com +short
Replace selector with the DKIM selector your provider uses. You should see exactly one v=spf1 record, one v=DMARC1 record and a long DKIM key.
Online checkers. MXToolbox has free SPF, DKIM and DMARC lookups. Mail-tester gives you an address to send a test email to, then scores the message and lists what failed.
The real test. Send an email to a Gmail account, open it, and choose "Show original". Gmail lists SPF, DKIM and DMARC with PASS or FAIL. Three passes is the goal.
A safe DMARC record rollout: none, then quarantine
Do not publish a strict DMARC record on day one. If some service sends on your behalf and you forgot about it, such as a booking system, a CRM or your own website, a strict policy will send those emails to spam or block them.
Step 1: monitor with p=none.
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Nothing changes for delivery. Receivers send aggregate reports to the rua address, which show which servers send mail as your domain and whether they pass. Leave it for a few weeks. The reports are XML, so use a free DMARC report viewer to read them.
Step 2: fix every legitimate sender. Add missing services to SPF, and turn on DKIM for your domain in each tool that supports it. My site sends contact notifications through Hostinger SMTP, which signs with the domain's key, so it passes. If your app sends mail, set it up properly as in my Hostinger SMTP settings guide.
Step 3: move to p=quarantine.
v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@example.com
Failing mail now goes to spam. The pct tag asks receivers to apply the policy to only part of the failing mail, though not every receiver honours it. Raise it to 100 once the reports look clean.
Step 4 (optional): p=reject. This blocks failing mail completely. It gives the best protection against spoofing, but only go there when you are confident every sender is covered.
Common mistakes
- Two SPF records. A domain must have only one
v=spf1record. Merge them into one. - Too many includes. SPF allows at most 10 DNS lookups. Stacking many
includeentries can break it silently. - Copying someone else's values. Your provider's
includeand DKIM key are specific to you. Take them from your panel. - Forgetting DNS propagation. Changes can take a while to show. Check with
digbefore you change things again. - Treating records as the whole story. Valid records help a lot, but sending reputation, content and complaint rates still matter.
For the bigger picture on running your site and email on one host, see my complete Hostinger guide. And if you want a setup where email authentication is easy to manage from one panel, Hostinger is what I use.
FAQ
Do I need all three: SPF, DKIM and DMARC?
Yes. Major mailbox providers increasingly expect all three, especially for anyone sending in volume. SPF and DKIM do the checking, and DMARC ties them together and tells receivers what to do.
Why are my emails still going to spam with SPF and DKIM passing?
Check DMARC alignment first, then content and reputation. A new domain, heavy links or images, or recipients marking you as spam can all lower your score even when authentication passes.
What should my first DMARC record be?
Start with v=DMARC1; p=none; rua=mailto:you@example.com. Read the reports for a few weeks, fix your senders, then move to quarantine.
Will DMARC break my email forwarding?
Forwarding usually breaks SPF but not DKIM. If DKIM is set up and aligned, forwarded mail can still pass DMARC.
Not sure why your emails keep landing in spam? Talk to the editor on ahmed-adil.com.
Some links in this article are affiliate links; if you buy through them, Ahmed may earn a commission at no extra cost to you.



