Newer Version Available
EmailDomainKey
Represents a domain key for an organization’s domain, used to
authenticate outbound email that Salesforce sends on the organization’s
behalf. This object is available in API version 28.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
We’ve upgraded and replaced the original DKIM (DomainKeys Identified Mail) key feature, so that you can create a DKIM key with increased email security. For more information, see Setting Up More Secure DKIM Keys.
Fields
Usage
Create DKIM Keys with Increased Security
- If your Salesforce org was created before Winter ’19, enable the Critical Update. From Setup, enter Critical Updates in the Quick Find box, and then select Critical Updates. For Enable Redesigned DomainKeys Identified Mail (DKIM) Key Feature with Increased Email Security, click Activate.
- Insert Domain, DomainMatch, Selector, and AlternateSelector. Salesforce publishes your TXT record to DNS.
- Retrieve the TxtRecordName
and AlternateTxtRecordName
and use them to create and publish the CNAME and Alternate CNAME record to your domain’s DNS.
- Create CNAME record using: <selector>._domainkey.<domain> IN CNAME txtRecordName.
- Create Alternate CNAME record using: <alternateSelector>._domainkey.<domain> IN CNAME alternateTxtRecordName.
- Set the IsActive field to true.
Create DKIM Keys (pre-Winter ‘19 Version)
When you create a DKIM key, Salesforce generates a public and private key pair. Publish the public key in the DNS.
For each domain key you create, we recommend this sequence:
- Insert the Domain, DomainMatch, and Selector.
- Update your domain’s DNS records.
- Locate the DNS record at selector._domainkey.domain. For example, mail._domainkey.mail.example.com.
- Add the PublicKey value, like this: V=DKIM1; p=public_key.
- In addition, you can optionally put the record in testing mode, which instructs recipients to not make decisions based on the email signature. Add parameter t=y to the DNS entry: V=DKIM1; t=y; p=public_key.
- Update the key via the API or UI to be active.