SPF, DKIM and DMARC for Marketing Cloud Senders

How SPF, DKIM and DMARC fit together, what alignment means for Marketing Cloud Engagement private domains, and a safe path from p=none to p=reject.

Type
Article
Topic
Marketing Cloud
Reading time
5 min
Updated
Author
GeekMidst Team
Reviewed by
Site owner
Banner for the GeekMidst article “SPF, DKIM and DMARC for Marketing Cloud Senders”, covering What each standard does and The records at a glance

Mailbox providers now expect bulk senders to authenticate their mail properly, and Google and Yahoo have published requirements for high-volume senders that include SPF, DKIM and a DMARC record. If your Marketing Cloud Engagement emails are landing in spam, or you are planning a new sending domain, SPF, DKIM and DMARC are the first things to get right.

Diagram showing a Marketing Cloud email checked by SPF against the Return-Path domain and DKIM against its signature, then DMARC testing alignment with the From domain to pass or apply policy
DMARC passes only when SPF or DKIM passes and that domain aligns with the From address, so From addresses must use the authenticated subdomain. View full size

What each standard does

  • SPF (Sender Policy Framework) lists the servers allowed to send mail for a domain. Receivers check it against the envelope sender, also called the Return-Path or bounce domain, not the From address the reader sees.
  • DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each message. The signing domain appears in the d= tag of the signature header, and receivers fetch the public key from DNS to verify it.
  • DMARC ties both to the visible From domain. A message passes DMARC when SPF or DKIM passes and the domain that passed aligns with the From domain. The DMARC record also tells receivers what to do with failures and where to send reports.

Alignment is the part most people miss. A message can pass SPF and DKIM for a sending platform's own domain and still fail DMARC, because neither of those domains matches your From address.

The records at a glance

Where it is publishedExample value (illustrative)
SPFTXT record on the domain used as the Return-Pathv=spf1 include:VALUE_FROM_SALESFORCE -all
DKIMTXT or CNAME record at selector._domainkey on the signing domainPublic key or CNAME target supplied during setup
DMARCTXT record at _dmarc on the From domainv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

How this works in Marketing Cloud Engagement

Marketing Cloud Engagement handles authentication through its sending domain setup. Most organisations send from a private domain, typically a subdomain such as email.example.com, often as part of the Sender Authentication Package (SAP), which also covers a dedicated IP, branded links and reply handling. Depending on how the domain is set up, Salesforce either manages the DNS records for a delegated subdomain or gives you records to publish in your own DNS.

A few practical points:

  • Use a subdomain for marketing mail. It separates marketing reputation from corporate mail and lets you set a policy for it without disturbing the main domain's mail flow.
  • Use the exact values Salesforce provides. SPF includes, DKIM selectors and keys come from the setup for your account. Do not copy them from another organisation's records or an old article.
  • Make sure From addresses use the authenticated domain. A sender profile that uses a different From domain will not align, whatever the DNS says.
  • Mind the SPF lookup limit. SPF allows at most ten DNS lookups when a record is evaluated. A corporate record with many includes can exceed it, which is another reason to send marketing mail from its own subdomain.

Exact setup steps, and what Salesforce configures for you, depend on your account and package, so confirm them in Salesforce Help or with your Salesforce account team.

Rolling out DMARC safely

  1. 01

    Publish a monitoring policy

    Start with p=none and a rua address that collects aggregate reports. Nothing is blocked yet; you are gathering evidence.

  2. 02

    Read the reports

    Aggregate reports show which sources send as your domain and whether they pass and align. A DMARC reporting tool makes the XML readable.

  3. 03

    Fix legitimate senders

    Every system sending as the domain, such as Marketing Cloud, CRM, the support desk and billing, needs aligned SPF or DKIM. Fix or move the ones that fail.

  4. 04

    Move to quarantine gradually

    Change to p=quarantine, and if you want a slower rollout, use the pct tag to apply it to a share of failing mail first.

  5. 05

    Move to reject

    When reports show only unauthorised mail failing, set p=reject. Keep reading reports afterwards, because new tools get added over time.

Checking that it works

Send a test email from Marketing Cloud to a mailbox you control, open the full message headers and find the Authentication-Results header. You want spf=pass, dkim=pass and dmarc=pass, with the domains involved matching your From domain or sharing its organisational domain, which is what relaxed alignment allows. Check more than one mailbox provider, because each reports slightly differently.

Common mistakes

  • Two SPF records on one domain. Only one SPF record is allowed per domain, so merge them.
  • Jumping straight to p=reject. Legitimate mail from a forgotten system disappears without warning.
  • Nobody reads the DMARC reports. The rua mailbox fills up and problems go unnoticed. Give it an owner.
  • Treating authentication as the whole of deliverability. It is required, but reputation still depends on list quality, consent, complaint rates and easy unsubscribes. Google and Yahoo also expect one-click unsubscribe for bulk mail, and a clear preference centre helps people opt down instead of complaining.
  • Forgetting link and image domains. Branded links should be set up so tracked links point to your domain rather than an unfamiliar one.

Checklist

  1. A dedicated subdomain for marketing mail, set up as a private domain.
  2. SPF and DKIM pass and align on test sends.
  3. DMARC published, starting at p=none, with reports going to a monitored address.
  4. Every other sender on the domain identified from reports.
  5. A dated plan for moving to quarantine and then reject.
  6. Sender profiles and From addresses use the authenticated domain.

Related: the Marketing Cloud email deliverability audit checklist, the deliverability checklist and our email deliverability consulting service.

Questions we hear

Do we also need a dedicated IP?
Not always. A dedicated IP suits senders with enough steady volume to build their own reputation; low-volume senders can do better on shared infrastructure. Authentication matters either way.
What DMARC policy do Google and Yahoo require?
Their bulk sender guidance asks for a published DMARC record, and p=none meets the minimum. Stronger policies protect your domain better. Check their current sender guidelines, as requirements change.
Will DMARC stop phishing that uses our brand?
It stops direct spoofing of the exact domains you protect with an enforced policy. It does not stop lookalike domains or misleading display names.
Why does DKIM pass but DMARC fail?
Usually the DKIM signature uses a domain that does not align with the From address, for example a platform default domain rather than your private domain.
Should we set up BIMI?
BIMI can show your logo in some inboxes, but it requires an enforced DMARC policy and, for most providers, a verified mark certificate. Treat it as a later step once DMARC is at quarantine or reject.

Get your sender authentication checked

We can review your DNS records, Marketing Cloud sending setup and DMARC reports, and plan a safe path to an enforced policy.

Request a deliverability review →

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation