HandsOn Connect DocumentationAnnouncements and Release NotesRelease NotesRelease Notes 2016 and earlierImplementing Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM)

Implementing Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM)

Although Salesforce provides top-notch infrastructure to deliver emails, since it sends them on behalf of your Organization's custom domain, many email providers flag these as spam. To improve deliverability, a few additional configurations steps are necessary. These steps are to implement two of the most common mechanisms to identify Salesforce as a trustworthy sender of your custom domain emails. Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM)  

Implement Sender Policy Framework (SPF)

Under this policy, a record is added to the domain DNS declaring Salesforce as a trustworthy sender for your custom domain.

In order to implement it your system administrator must create or modify a TXT record in the DNS of your custom domain name. Here are the instruction to set it up at most popular DNS providers.

If the record doesn't exist, create it using:

v=spf1 include:_spf.salesforce.com ~all

If the record does exist add the following to the existing record:

include:_spf.salesforce.com

In order to confirm that it was properly set use a tool like http://mxtoolbox.com/spf.aspx

Here is an example of the test using handsonconnect.org.

Here is the official Salesforce documentation Sender Policy Framework (SPF) - Salesforce SPF Record

Implement DomainKeys Identified Mail (DKIM)

Under this policy, emails are signed by Salesforce.  To accomplish this, a record is added to your domain DNS with a public key that is used to verify those signatures.  This makes Salesforce a trustworthy sender for your custom domain.

To implement, your system administrator must create or modify a TXT record in the DNS of your custom domain name. Here are the instruction to set it up using the most popular DNS providers.

  1. Setup Salesforce DKIM following these instructions to create a DKIM Key
    1. For Selector name use hoc
    2. For Domain name use: <Custom Domain>
    3. For Domain Match pick from the drop down : Exact domain and subdomains
    4. DO NOT activate 

  2. Setup DNS TXT record using:

    1. host: hocd._domainkey.<Custom Domain>
    2. v=DKIM1; k=rsa; p=<Public Key>

  3. Test DKIM configuration using http://dkimcore.org/tools/keycheck.html
    1. Selector: hoc
    2. Domain: <Custom Domain>
  4. If test is successful activate DKIM in Salesforce. 
From Setup, enter DKIM Keys in the Quick Find box, then select DKIM Keys, click on the hoc selector set Activate.


0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.