← Back to blog

Why Email Goes to Spam: DKIM, SPF, DMARC and Deliverability

Why authenticated mail can still land in spam, and how DKIM, SPF, and DMARC affect inbox placement — plus the mistakes that break authentication entirely.

Updated November 15, 2026
Why Email Goes to Spam: DKIM, SPF, DMARC and Deliverability

Getting a message accepted by an SMTP server is easier than getting it into the inbox. The same letter can land in spam, or be quietly dropped, because inbox providers score more than a clean handoff: authentication, reputation, content, and whether similar mail was marked junk before.

This article is about that outcome — why mail goes to spam even when you thought you “set up DKIM.” The protocol picture of how SPF, DKIM, and DMARC work together is in how email authentication works. The records to publish are in the DNS setup checklist, with syntax detail in SPF record setup and the policy rollout in DMARC record setup.

The same message landing in spam when authentication is missing, and in the inbox when SPF, DKIM, and DMARC are in place

Why authentication matters

Email was designed in an era with no identity layer. Any server can send a message claiming to be from ceo@yourbank.com. DKIM, SPF, and DMARC are retrofitted solutions that let a legitimate sender prove their domain is theirs.

SPF: who is allowed to send

An SPF record is a TXT record at your domain root that lists the IP addresses and services permitted to send mail from it:

v=spf1 include:_spf.rovela.dev ~all

The ~all softfail means "other senders are suspicious"; -all means "reject anything else." When you add your domain in Rovela, the dashboard shows the include: to publish — currently include:_spf.rovela.dev. You still have to put that TXT record in DNS (or use one-click DNS on a supported host).

Limitation: SPF only checks the envelope-from (the SMTP MAIL FROM), not the From: header the reader sees. That is why SPF alone is not enough.

DKIM: a cryptographic signature

DKIM attaches a signature to every message using a private key held by your sending service. The public key lives in DNS:

rovela._domainkey.acme.com  TXT  "v=DKIM1; k=rsa; p=MIIBIjAN..."

Receiving servers fetch that record and verify the signature. If it matches, the message provably came from someone who controls your domain. A tampered message fails verification.

Rovela generates a DKIM key pair per domain. The public key is the DNS record the dashboard asks you to add; you do not attach the signature yourself on API or mailbox sends.

DMARC: the policy that ties them together

DMARC tells receivers what to do with messages that fail SPF and DKIM, and where to send reports:

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

The p= value progresses from none (observe and report) to quarantine (spam folder) to reject (refuse delivery). Start with none, read the aggregate reports for a few weeks, then tighten.

Why p=reject matters: when your domain publishes p=reject and a phishing email fails DKIM and SPF, Gmail and Outlook will reject it outright rather than delivering it to your customers.

The practical order

  1. Add your domain in Rovela — we generate the three DNS records.
  2. Publish all three at your DNS provider.
  3. Verify in the dashboard. Rovela tests each record and shows the live result.
  4. Set your DMARC policy to none and add a rua report address.
  5. After two weeks of clean reports, move to quarantine, then reject.

Common mistakes

MistakeEffect
Multiple SPF records for the same domainReceivers treat this as a permanent error (permerror), not “use the last record”; legitimate mail fails
A missing or truncated DKIM key in DNSSignatures cannot verify; many providers treat the message as unauthenticated
Skipping DMARC entirelySPF and DKIM have no policy to back them up; spoofing still works
Going straight to p=rejectMisconfigured forwarding chains fail and drop legitimate mail

Rovela handles key generation for hosted mail. The DNS records are still the part that only you can control — or that one-click DNS can write on Cloudflare, Aliyun DNS, or DNSPod.

Authentication is necessary, but it is not the whole inbox story. A domain that passes SPF, DKIM, and DMARC can still be filtered for a poor sending reputation, sudden volume, spam-like content, or a list full of role and stale addresses. After the records are clean, check bounce and complaint events (Rovela documents email.bounced and email.complained on the webhooks product), keep a suppression list, and send from the Email API with a verified domain rather than a borrowed mailbox password. If messages never arrive at your domain mailbox at all, that is a different path: business email not receiving.