Skip to main content
Source Guide: Salesforce

Source Guide: Salesforce

Email TechnologyTechnical Guidance

This guide describes the process for configuring Salesforce to send DMARC-compliant messages. You will need to configure this source, and others that send on your behalf, before advancing your DMARC policies to a more restrictive state, eg., quarantine and/or reject.

To bring this source into DMARC compliance, you will need access to Salesforce’s administrative account and the domain’s DNS management console.

From time to time, these instructions change with very little advance notice. Please always refer to documentation hosted by Salesforce for the most complete and accurate information.

General Information
Salesforce is a customer relationship management software that brings together sales, customer service, marketing automation, analytics, and application development. Many departments, such as Sales, Marketing, IT, Support and HR use this tool. Salesforce supports DMARC compliance through SPF and DKIM alignment.

SPF

To configure SPF, add a DNS TXT record at your domain’s DNS provider:

  • Login to the management console of your domain’s DNS provider
  • Locate the page where you manage DNS records for your domain
  • Add “_spf.salesforce.com” to your domain’s SPF TXT record

Following are examples of SPF records:

  • v=spf1 include:_spf.salesforce.com ~all
  • v=spf1 mx ip4:204.14.234.64/28 ip4:204.14.232.64/28 ip4:182.50.78.64/28 ip4:96.43.144.64/31 ip4:96.43.148.64/31 include:_spf.salesforce.com ~all

Reference: Salesforce’s SPF directions

DKIM
Before you start with DKIM, make sure you have the user permissions to Manage DKIM keys.

To configure DKIM:

  • From Setup, enter “DKIM Keys” in the Quick Find box, and then select DKIM Keys.
  • Click Create New Key.
  • Select the RSA key size. We recommend using a 2048 bit key whenever possible.
  • For Selector, enter a unique name.
  • For Alternate Selector, enter a unique name. The alternate selector allows Salesforce to auto-rotate your keys.
  • Enter your domain name.
  • Select the type of domain match you want to use.
  • Click Save. Salesforce publishes your TXT records to DNS. Your CNAME and alternate CNAME records appear on the DKIM Key Details page when the DNS publication is complete. It can take time for DNS publication to finish.
  • Publish the CNAME and alternate CNAME records to your domain’s DNS.
  • Select Activate on the DKIM Key Details page.

Reference: Salesforce’s DKIM directions

Note: If you encounter alignment issues with SPF and DKIM, you may need to disable the Bounce Management and Email Security Compliance features in your Salesforce account settings. See Salesforce’s article for more information.


If you have a dmarcian account, it may take a few days to see these changes reflected in the dmarcian platform. You can look in the Detail Viewer (shown below) to check SPF and DKIM alignment required for DMARC.

dmarcian detail viewer screenshot for source guides

With a team of email security experts and a mission of making email and the internet more trustworthy through domain security, dmarcian is here to help assess an organization’s domain catalog and implement and manage DMARC for the long haul.


Want to continue the conversation? Head over to the dmarcian Forum.