Guides › CRM

Salesforce SPF record & DKIM setup

The exact SPF include for Salesforce, how many of your 10 DNS lookups it costs right now, and how to turn on DKIM so you pass DMARC.

SPF

If Salesforce is your only sender, publish this TXT record at your root domain (@):
v=spf1 include:_spf.salesforce.com ~all

Already have an SPF record? Don't add a second one. Add include:_spf.salesforce.com before the ~all, or use the SPF merger.

Live lookup cost: 2 lookups

Current record at _spf.salesforce.com:

v=spf1 exists:%{i}._spf.mta.salesforce.com -all

Measured live from DNS and refreshed daily. Salesforce can change this at any time, which is exactly why monitoring matters.

DKIM

Create a DKIM key in Setup → DKIM Keys; Salesforce gives you two CNAME records.

DMARC

SPF and DKIM only protect you once DMARC ties them to your visible From: address. If you don't have one yet, start with:

TXT record at _dmarc
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;

Official documentation: Salesforce docs

Using Salesforce with another service?

Check that Salesforce is set up correctly on your domain