How to authenticate Salesforce email

Short answer

For Salesforce, enable DKIM signing in Setup (it generates a key to publish as a CNAME/TXT), and add Salesforce to your SPF record (include:_spf.salesforce.com). DKIM aligned to your domain is what makes Salesforce mail pass DMARC — SPF alone often won’t align.

Enable Salesforce DKIM

In Salesforce Setup → Email → DKIM Keys, create a key and publish the DNS record it provides. This signs mail with your domain for DMARC alignment.

Add SPF (secondary)

Include Salesforce in your single SPF record. Because SPF can break alignment depending on the envelope domain, rely on DKIM as the primary aligned identifier.

  1. 1

    Verify the Salesforce DKIM record

    Check the selector you published:

    $ dig TXT selector._domainkey.yourdomain.com +short

Check your SPF record now

Open the free SPF checker →

Frequently asked questions

Why does Salesforce (Marketing Cloud) mail fail DMARC?

Usually because DKIM isn’t enabled/aligned to your domain, so only SPF passes and alignment fails. Enable Salesforce DKIM keys to fix it.

Aligns with the Google/Yahoo 2024 sender requirements.

Reviewed by the Skysnag Security Team. Last updated .