Skip to main content
Enter TitanOS

Sender setup

Salesforce email and your domain: getting SPF, DKIM and DMARC to align

Salesforce can send email on behalf of your staff, from Sales Cloud, Service Cloud and Marketing tools. If that mail uses your domain in the From line, you must configure authentication, or a strict DMARC policy will start rejecting your own CRM mail.

By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.

This page is for administrators and IT providers. It outlines what to configure and why, and it refers you to Salesforce's setup screens for exact names, since orgs differ.

Why default sending fails alignment

Out of the box, Salesforce may send through its shared servers with an envelope address of its own. SPF passes for that address, not for your domain, and there is no DKIM signature from you, so DMARC has nothing aligned to accept.

The problem often appears the day a business moves its domain to an enforcing DMARC policy. Staff notice that CRM emails to customers bounce or vanish while ordinary mail is fine.

Creating your own DKIM key

Salesforce lets an administrator create a DKIM key for a domain in its setup area. It then shows the records, typically CNAME entries, that you publish so the key can be found. Salesforce says to publish them as given, and then activate the key.

Activation matters. A key that is published but not activated does not sign mail, which is why we suggest checking a real outgoing message and not only the setup screen.

  • Create the key for the exact domain used in the From address.
  • Publish the records shown, then activate the key.
  • Retest after any change to the org's email settings.

SPF and deliverability settings

Salesforce documents an SPF include for its servers, and where it applies you add it to your existing record. As ever, there is one SPF record per name, and each include uses a lookup toward the cap of 10.

Salesforce also has an email deliverability setting that controls whether the org can send externally at all. A sandbox copy often has it limited, so a test that fails there does not prove your production DNS is wrong.

Where each Salesforce email problem tends to sit
SymptomLikely areaFirst check
DMARC fail on CRM mailNo aligned DKIMKey created and activated
SPF permerrorTwo SPF recordsDNS TXT list for your domain
No external emailDeliverability settingOrg email settings

Which Salesforce mail is covered

Salesforce sends several kinds of email: one-to-one messages from a user, automated alerts from flows and workflows, and bulk or marketing sends. They can use different From addresses and different sending paths, so test each type.

Alerts from automation are the easiest to forget, because nobody sees them leave. A DMARC report is often the first sign that a forgotten workflow sends hundreds of messages as your domain. Fix the From address on the workflow or authenticate the domain it uses.

Testing and monitoring

Send from a real user, such as a salesperson emailing a customer, to a Gmail account and view the original. Look for dkim=pass on your domain. Then watch DMARC aggregate reports, which show Salesforce as a source if it is sending as you.

The Australian Cyber Security Centre advises publishing and enforcing these controls to make impersonation of your domain harder, and CRM systems are exactly the kind of sender that reports uncover.

Salesforce set-up checklist

  1. Find every From domain used by Salesforce.
  2. Open the DKIM key area in Salesforce setup.
  3. Create a key for each From domain.
  4. Publish the records Salesforce shows.
  5. Activate the key once DNS is visible.
  6. Add Salesforce's SPF include if the documentation requires it.
  7. Check your single SPF record is under 10 lookups.
  8. Review the org's deliverability setting.
  9. Send a real user email to Gmail and read the headers.
  10. Monitor DMARC reports before enforcing.

Questions people ask

Where do I get the DKIM records?

From the key you create in Salesforce setup. Copy them as shown rather than from a guide, as they are specific to your org and domain.

Does sandbox testing prove production works?

Not fully. Sandboxes often have different email settings, so confirm with a message from production.

Why does CRM mail fail while Outlook mail passes?

They are different senders. Outlook mail is signed by your mailbox provider, while Salesforce needs its own aligned DKIM.

Is this advice about privacy law?

No. It is a technical guide. Privacy obligations sit separately, and this is general information, not legal advice.

Where to from here

The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.

Get the free auditSee Privacy CareBook a call

Sources

  1. RFC 7208, Sender Policy Framework (SPF)
  2. RFC 6376, DomainKeys Identified Mail (DKIM) signatures
  3. RFC 7489, DMARC
  4. Australian Cyber Security Centre, how to combat fake emails
  5. ACMA, avoid sending spam
Book a free call