schedule 12-min read

DMARC and Salesforce: How to Protect Sales Emails

DMARC AI editorial team · Last updated

Align Salesforce email with DMARC: DKIM keys in Sales Cloud, bounce management and SPF, Marketing Cloud SAP and Account Engagement, plus an MSP checklist.

01

Introduction

To make Salesforce email pass DMARC, sign it with DKIM using the client's own domain. In Sales Cloud and Service Cloud that means an active DKIM key in Setup; in Marketing Cloud Engagement it means a private domain or Sender Authentication Package; in Account Engagement it means a verified email sending domain. SPF rarely aligns by default.

This guide covers each Salesforce product, shows which identifier aligns with the From domain, and gives MSPs a checklist for finding every Salesforce org a client runs. For the protocol basics, start with the DKIM guide and the DMARC guide.

02

Key takeaways

  • In Sales Cloud and Service Cloud, an active DKIM key whose domain matches the From domain is the reliable route to DMARC pass. Bounce management rewrites the envelope sender to bnc.salesforce.com, so SPF does not align while it is on.
  • Since Spring '26, Salesforce blocks mail from unverified sending domains. An active DKIM key verifies the domain and gives you DMARC alignment in one step.
  • Marketing Cloud Engagement aligns only when the From domain is a private domain or SAP domain. Without one, the bounce domain is bounce.exacttarget.com and there is no customer DKIM domain.
  • Account Engagement signs DKIM with your sending domain but, by Salesforce's own description, fails SPF alignment unless a custom return path is set up through support.
  • DMARC needs only one aligned identifier. Get DKIM right in every product before you move a client past p=none.
03

Which Salesforce products send email for a client?

Three Salesforce products commonly send mail with a client's From address, and each is configured separately. Sales Cloud and Service Cloud (the core platform) send rep emails, workflow and case notifications. Marketing Cloud Engagement sends bulk campaigns. Marketing Cloud Account Engagement (formerly Pardot) sends B2B nurture and list mail.

A client can run all three, plus sandboxes and several production orgs. Fixing DKIM in one product does nothing for the others, which is why Salesforce often shows up as unexplained failures in DMARC aggregate reports.

04

How does DMARC alignment apply to Salesforce mail?

DMARC passes when SPF or DKIM passes and the authenticated domain aligns with the domain in the visible From header. RFC 9989 keeps relaxed alignment as the default, so mail.example.com aligns with example.com when both share the same organisational domain.

Salesforce says the same for Marketing Cloud, adding that some mailbox providers expect both SPF and DKIM to align. See DMARC alignment explained for relaxed versus strict mode.

05

How do you set up DKIM in Sales Cloud and Service Cloud?

Create a DKIM key in Setup, publish the two CNAME records Salesforce generates, then activate the key. Salesforce hosts and rotates the keys, so the client's DNS holds only two CNAMEs per sending domain. These steps follow Salesforce Help's Create a DKIM Key article.

  1. In Setup, use Quick Find to open DKIM Keys and click Create New Key.
  2. Choose RSA 2048-bit as the key size.
  3. Enter a Selector (for example example-sf-a) and an Alternate Selector (example-sf-b). Salesforce uses the alternate for automatic rotation.
  4. Enter the Domain exactly as it appears in the From address. You cannot edit it after saving.
  5. Set the Domain Match Pattern to the same value, such as example.com. Salesforce advises against wildcards for domains you own.
  6. Save. After roughly 15 minutes the CNAME Record and Alternate CNAME Record fields appear on the key's detail page.
  7. Publish both CNAMEs, wait for DNS to propagate (Salesforce allows up to 72 hours), then activate the key.

The records look like this (the random label in the target is unique to each org):

example-sf-a._domainkey.example.com.  CNAME  example-sf-a.k4tyd2.custdkim.salesforce.com.
example-sf-b._domainkey.example.com.  CNAME  example-sf-b.e6mxu6.custdkim.salesforce.com.

Salesforce's DKIM considerations explain that keys rotate every 30 days and that the active key's domain must match the entire From domain for domain verification. Activate a separate key for each sending domain and subdomain. See DKIM selector explained.

06

Why does SPF fail alignment for Salesforce core email?

SPF fails alignment because Salesforce rewrites the envelope sender when Activate bounce management or Enable compliance with standard email security mechanisms is on. The Return-Path becomes a VERP address under bnc.salesforce.com, which SPF can pass but which never matches the client's From domain.

Salesforce's article on SPF and DKIM alignment failures gives the example envelope ...@abc123.bnc.salesforce.com and recommends DKIM as the fix. As long as DKIM aligns, DMARC does not need SPF to align, so bounce management can stay on. The alternative is to add include:_spf.salesforce.com to SPF and turn off both settings under Setup > Deliverability, losing bounce tracking and spending SPF lookups.

A correctly configured org produces:

Authentication-Results: mx.google.com;
       dkim=pass header.i=@example.com header.s=example-sf-a;
       spf=pass smtp.mailfrom=...@abc123.bnc.salesforce.com;
       dmarc=pass (p=NONE) header.from=example.com

Sales Cloud and Service Cloud alignment table

Setup From Return-Path DKIM d= DMARC
No DKIM key, bounce management on example.com *.bnc.salesforce.com none for client Fails
Active DKIM key, bounce management on example.com *.bnc.salesforce.com example.com Passes on DKIM
SPF include, both deliverability settings off, no DKIM example.com client domain none for client Passes on SPF only, fragile
Email relay plus Salesforce DKIM example.com depends on relay and bounce settings example.com Passes on DKIM
07

Does the Spring '26 domain verification requirement affect DMARC?

Yes, indirectly. Salesforce's Spring '26 email-sending domain verification notice says delivery fails for mail from unverified domains, including over email relay. Allowlisted domains had to be verified from 29 June 2026, with phased enforcement ending 27 July 2026.

Salesforce recommends an active DKIM key as the verification method, with Authorized Email Domains as the alternative. DKIM solves verification and DMARC alignment together. The notice exempts Marketing Cloud, Gmail and Office 365 integrations, and Einstein Activity Capture. A stop-gap setting can substitute an sfcustomeremail.com address, which will never align with the client's DMARC policy.

08

How does email relay change things?

With email relay, Salesforce hands mail to the client's own SMTP server, but Salesforce settings still shape the headers. Salesforce's email relay considerations note that bounce management sets the return path to bnc.salesforce.com, which can cause an SPF soft fail from the relay's IPs.

Salesforce's fixes are to enable its DKIM signing alongside a DMARC policy, or to turn bounce management off. It also recommends allowlisting only intended IPs, enforcing TLS and checking the X-SFDC-LK header for the org ID.

09

How do you authenticate Marketing Cloud Engagement?

Marketing Cloud Engagement aligns only when mail is sent from a domain configured as a Private Domain or a Sender Authentication Package (SAP). Salesforce's SAP documentation describes the private domain as the From address for sends, authenticated with SPF and DKIM.

An SAP bundles a private domain with link and image branding, a dedicated IP address and Reply Mail Management. A Private Domain alone is a paid product providing SPF and DKIM without the branding. Salesforce handles the DNS for SAP setup, either by delegating DNS to Engagement name servers or by subdomain delegation, so most clients hand over a subdomain such as em.example.com.

Salesforce's Trailhead module on SAP shows the domains used with and without an SAP:

Marketing Cloud Engagement alignment table

Setup From Return-Path (bounce) DKIM d= DMARC
No SAP or private domain example.com bounce.exacttarget.com none for client Fails
SAP on em.example.com news@em.example.com bounce.em.example.com em.example.com Passes on SPF and DKIM
SAP on em.example.com, From set to example.com example.com bounce.em.example.com em.example.com Relaxed alignment only

Salesforce's alignment requirements article warns that SPF falls out of alignment when the authenticated sending domain differs from the SAP domain. Multi-Bounce Domain support, enabled through a support case, sets the bounce domain per message for business units that send from several private domains. Strict alignment (adkim=s or aspf=s) breaks the subdomain pattern, so keep relaxed mode on clients using Marketing Cloud.

10

How does Account Engagement (Pardot) align?

Account Engagement aligns on DKIM. Add the email sending domain under Account Engagement Settings > Domain Management, click Expected DNS Entries, and publish the DomainKey value as a TXT record, per Salesforce's Account Engagement DKIM guide.

Salesforce's DMARC support article states that Account Engagement mail fails SPF alignment because the return path does not match the From domain. A custom return path, limited to one per business unit, is available through a support case. Treat DKIM as the requirement and SPF alignment as optional.

11

How does this tie in with Gmail and Yahoo bulk sender rules?

Google requires bulk senders to publish DMARC and to align the From domain with either the SPF or DKIM domain, per its email sender guidelines. Marketing Cloud and Account Engagement campaigns are the most likely to cross the bulk threshold, so a missing private domain or DKIM key shows up as rejections.

Read Google and Yahoo sender requirements and Gmail 550 5.7.26 explained.

12

What should an MSP check across client Salesforce orgs?

Find every Salesforce org and product that sends with the client's domains, then confirm each signs with an aligned DKIM domain. In aggregate reports, look for SPF domains under bnc.salesforce.com or exacttarget.com and for the selectors you created in Salesforce.

  1. Inventory. List every production org, sandbox, Marketing Cloud business unit and Account Engagement business unit. Our client discovery guide covers the method.
  2. Map domains. Record each From domain per product, including subdomains like em. or go..
  3. DKIM per domain. One active key per sending domain in core; a private domain or SAP per From domain in Marketing Cloud; a verified sending domain in Account Engagement.
  4. SPF budget. Only add include:_spf.salesforce.com if you deliberately turn bounce management off.
  5. Sandboxes. Check which sandboxes are allowed to send email and from which domains, and include them in the inventory.
  6. Policy. Hold the client at p=none, confirm Salesforce sources pass, then move to p=quarantine and p=reject. RFC 9989 removed the pct tag, so there is no percentage ramp.
  7. Ownership. Record which Salesforce admin owns each change, as covered in handling third-party senders.

A starter record for a client in monitoring mode:

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

DMARC AI processes aggregate reports per client domain, so Salesforce sources appear alongside every other sender. It has no Salesforce integration; all configuration happens in Salesforce and DNS.

13

How do you troubleshoot Salesforce DMARC failures?

Most failures come from a missing or inactive DKIM key, a From domain that does not match the key, or campaign mail sent outside the SAP domain. Pull full headers from a failing message and compare the header.from, smtp.mailfrom and header.d values.

Symptom Likely cause Fix
spf=pass smtp.mailfrom=...bnc.salesforce.com, dmarc=fail No active DKIM key; bounce management on Create and activate a DKIM key for the From domain
DKIM key will not activate CNAMEs missing, mistyped or doubled by the DNS host Check the exact names; some hosts append the zone
header.d is a parent domain, From is a subdomain Key covers example.com only Add a key for the subdomain
Gmail shows "via …bnc.salesforce.com" No Salesforce DKIM signature Activate DKIM; Salesforce documents this fix
Mail blocked as unverified domain Spring '26 verification Activate DKIM or verify an Authorized Email Domain
Marketing Cloud bounce is bounce.exacttarget.com From domain not a private or SAP domain Send from the SAP or private domain
Account Engagement spf not aligned Expected behaviour Rely on DKIM or request a custom return path

For DKIM housekeeping across many tenants, see DKIM management for MSPs. Compare with HubSpot and Mailchimp if the client runs those too.

14

Frequently asked questions

Do I need to turn off bounce management in Salesforce?

No. Salesforce states that as long as DKIM aligns, DMARC does not require SPF to align, so bounce management can stay on. Turn it off only if you cannot use DKIM and choose the SPF route, which also needs include:_spf.salesforce.com in the client's SPF record and email security compliance disabled.

Does Salesforce DKIM work with email relay?

Yes. Salesforce recommends enabling its DKIM signing when using email relay, so mail passes DMARC even if SPF soft fails because of the bnc.salesforce.com return path. Your relay server must not modify the signed headers or body, or the signature will break before delivery to the recipient.

Do Gmail or Office 365 integrations need a Salesforce DKIM key?

Not for that mail. When reps send through the Gmail or Office 365 integration, the message leaves through Google or Microsoft, and the Spring '26 notice exempts these integrations. That mail is authenticated by the client's Google Workspace or Microsoft 365 DKIM setup instead, so check that tenant.

Can Marketing Cloud send from the client's root domain?

It can, if the root domain is set up as a private domain, but most clients use a delegated subdomain such as em.example.com. Relaxed alignment lets that subdomain align with an organisational DMARC policy on example.com, while keeping campaign reputation separate from corporate mail.

15

Next step

Filter each client's aggregate reports for Salesforce sources, fix DKIM per product, confirm passing results, then move the policy forward.

Related articles

Related tools

Ready to Implement?

Get authenticated mail moving in minutes: start free, book a guided demo, or talk to the team about your stack.