ON THIS PAGE
By Efe Berke Colaker, Founder at GetleadReviewed by the Getlead editorial team for accuracy. Last updated November 2026.
Salesforce outbound programs fail when domains lack proper authentication, because mailbox providers reject unverified messages. Reps send emails directly from the CRM interface, expecting them to reach the prospect's inbox. Instead, providers route those unauthenticated messages straight to the spam folder without notifying the sender. The sender sees zero replies and assumes the leads were bad, but the instruments were never installed to diagnose the actual problem.
Salesforce DKIM keys are cryptographic signatures that prove an email originated from your authorized domain. For example, an SDR sends a contract through Salesforce to a prospective buyer. The receiving server checks the hidden signature against your public DNS record to verify the sender. A match delivers the email to the inbox, while a failure triggers an immediate rejection.
This configuration requires specific steps to pass modern spam filters, because providers look for these signatures on every single message. Without them, your domain looks identical to a spammer spoofing your brand.
The deliverability failure
Shared IP reputation
Many teams assume Salesforce handles email delivery by default, but the platform routes outbound mail through large shared IP pools. Shared pools carry mixed reputations from thousands of different customers, forcing mailbox providers to rely on domain reputation instead.
Without authentication, your domain inherits the reputation of the shared IP, which often leads to delivery failures. Providers block unauthenticated mail to protect their users from phishing, and Google enforces strict policies for all bulk senders. You must prove ownership of your domain to reach the inbox consistently.
A high bounce rate damages your sender score immediately, and providers track these metrics to determine long-term inbox placement. Unauthenticated domains face immediate rejection from major networks, meaning the spam filter catches these messages before they ever reach the recipient.
Salesforce logs will show successful delivery to the receiving server, because the receiving server accepts the message and then silently drops it. Your open rates plummet while your reports show no errors, creating a silent failure mode that frustrates sales teams using standard cold email software.
The authentication mechanism
Asymmetric cryptography
DKIM adds a digital signature to the hidden email header, relying on asymmetric cryptography to verify the sender identity. Salesforce holds the private key securely on their internal servers, while your DNS provider holds the public key in a text record. When you send an email, Salesforce signs the message body mathematically.
The receiving server queries your DNS for the public key, decrypting the signature to prove the email content remained unchanged. The signature covers specific headers like the from address and subject line. If a malicious actor alters the subject, the signature breaks, and the receiving server rejects the message.
The 2048-bit standard
Older systems used 1024-bit encryption keys for this verification process, but attackers can now crack them using standard computing power. Modern providers require 2048-bit encryption for high-volume senders, and Google email sender guidelines mandate 2048-bit keys for all new domain setups.
This mechanism protects your brand from impersonation attacks, ensuring your outbound campaigns maintain a strong sender reputation over time.
Generating keys in Salesforce
Initial setup steps
The setup process starts inside the Salesforce interface, where administrators must create the keys before touching the external DNS settings. Follow these specific steps to generate the keys inside the CRM:
- Navigate to the Setup menu using the gear icon in the top right corner.
- Type DKIM into the Quick Find box to locate the authentication settings.
- Select DKIM Keys from the menu and click the button to create a new key.
- Choose the RSA 2048-bit key size to comply with modern security requirements.
- Enter your primary and alternate selectors to enable automated key rotation.
Selectors and domain matching
Assign a unique selector to identify the specific key pair, telling the receiving server where to look in your DNS. Enter an alternate selector for automated key rotation, allowing Salesforce to update keys without breaking delivery during the transition. Salesforce uses two selectors to rotate keys automatically every few months, maintaining security without requiring manual intervention.
Enter your domain name, select the exact domain match option, and save the configuration to generate the required CNAME records. The system takes a moment to process the cryptographic key generation, displaying two distinct CNAME records on your screen. Copy these values exactly as they appear in the interface, because you will need these exact strings for the next step.
Publishing DNS records
CNAME versus TXT records
The generated keys must live in your domain name system, and Salesforce provides CNAME records instead of standard TXT records for this. CNAME records allow Salesforce to update the keys automatically behind the scenes, whereas TXT records would require manual updates every time the key rotates.
Provider specific configurations
Log into your DNS provider, navigate to the zone editor, and create a new CNAME record for the primary selector value. Paste the primary selector into the name field of the record, and paste the primary value into the target field. Repeat this exact process for the alternate selector to complete the initial DNS configuration.
Different DNS providers use slightly different interfaces for adding CNAME records:
- Cloudflare requires you to disable the proxy status for DKIM records, ensuring the DNS resolves directly to Salesforce.
- GoDaddy automatically appends your domain name, meaning you only need to enter the selector string in the name field.
- Namecheap uses an advanced DNS tab, where you must select CNAME from the dropdown menu before pasting the values.
- Route 53 requires you to create a new record set, selecting CNAME as the type and pasting the target value.
Save the DNS changes and wait for the records to propagate across global internet networks. Most providers update their records within one hour of the change, but some networks require up to 48 hours to clear their internal cache. Do not modify the CNAME records after you save them, because any alteration will break the link to the Salesforce servers.
Activation and testing
Enabling the signature
Return to the Salesforce DKIM page after updating your DNS settings, as the system monitors the DNS records continuously in the background. The activation button remains disabled until Salesforce detects the published CNAME records, so refresh the page after thirty minutes to check the current status.
Click the activate button once it becomes available on the screen, and Salesforce will begin signing all outgoing mail for that specific domain. Testing the configuration prevents silent failures in your outbound campaigns, so send a test email to a dedicated deliverability diagnostic tool.
Header verification
Verify the authentication headers in the resulting test report, ensuring the results show a clear pass for the DKIM check. A fail result indicates a mismatched selector or an incomplete DNS update, requiring you to review your DNS entries carefully.
You can also test by sending an email to a personal address, opening the original message headers, and checking the DKIM pass status clearly. This manual check confirms your setup works in the real world, protecting your sender reputation from unnecessary damage.
Aligning with SPF and DMARC
The authentication triad
DKIM alone does not guarantee inbox placement for your emails, because SPF and DMARC complete the authentication triad for business domains. SPF lists the IP addresses authorized to send mail on your behalf, while DMARC tells the receiving server what to do with unauthenticated messages.
Salesforce requires a specific include statement in your SPF record, which you must add to your existing SPF configuration immediately. Do not create a second SPF record for the same domain name, because multiple SPF records cause an immediate authentication failure across all providers.
Policy enforcement
Configure your DMARC policy to monitor incoming reports from receivers, starting with a policy of none to observe the traffic patterns. DMARC policies operate on three distinct enforcement levels:
- A policy of none monitors your traffic without blocking any messages, providing reports on which emails pass or fail authentication.
- A policy of quarantine sends unauthenticated messages to the spam folder, protecting the inbox while allowing you to review false positives.
- A policy of reject blocks unauthenticated messages at the gateway, offering the highest level of protection against domain spoofing.
Review the DMARC reports to confirm Salesforce emails pass authentication checks, and move the policy to reject once you verify the setup works as intended. A reject policy protects your domain from unauthorized senders, but you must ensure all legitimate sources pass DKIM before enforcing rejection.
Troubleshooting common errors
Propagation and typos
Many teams encounter errors during the initial DKIM setup phase, often involving DNS propagation delays across different networks. Salesforce will not activate the keys until it sees the public records, meaning you must wait patiently if the activation button remains greyed out.
Selector mismatch represents another frequent point of failure for administrators, because the selector in Salesforce must match the selector in your DNS. A single typo in the CNAME record breaks the entire authentication chain, so copy and paste the values to avoid manual data entry errors.
Domain matching issues
Some DNS providers append your domain name to the record automatically, duplicating the domain if you enter the full selector string. This duplication creates an invalid record that Salesforce cannot read, requiring you to check your DNS provider documentation to understand how they handle domain suffixes.
If emails still fail authentication, check your domain matching settings, because Salesforce offers options for exact domain match or subdomain matching. An incorrect setting here prevents the system from signing the outgoing messages, so verify that the domain in Salesforce matches your sending address.
Sources and method
Our deliverability benchmarks come from internal platform data, measuring baseline bounce rates and tracking outbound sends to understand how authentication impacts open rates.
Google email sender guidelines specify the requirement for 2048-bit DKIM keys, and we referenced this documentation to confirm modern encryption standards for bulk senders.
RFC 6376 (DKIM) defines the technical specifications for domain keys identified mail, which we used to explain the cryptographic signature mechanism in detail.
RFC 7489 (DMARC) provides the framework for policy enforcement based on authentication, and we consulted this document to explain the alignment between DKIM and DMARC. Figures were checked in November 2026.
Frequently asked questions
What is the DKIM key in Salesforce?
The DKIM key in Salesforce is a cryptographic signature added to outgoing emails. It proves to the receiving server that the email originated from your authorized domain and that the message content remained unchanged in transit.
What is a domain in Salesforce?
A domain in Salesforce represents the web address associated with your company. You must verify ownership of this domain by publishing specific DNS records before Salesforce can send authenticated emails on your behalf.
How do I find my Public/Private DKIM Key in Salesforce?
Navigate to the Setup menu and search for DKIM Keys in the Quick Find box. Select your domain from the list to view the CNAME records containing your public key. Salesforce keeps the private key hidden on their internal servers for security.
How long does Salesforce DKIM activation take?
Salesforce DKIM activation depends on your DNS propagation speed. Most DNS providers update their records within one hour, allowing Salesforce to detect the keys and enable the activate button. Some networks require up to 48 hours to clear their cache.
Why is the Salesforce DKIM activate button greyed out?
The activate button remains greyed out until Salesforce verifies the CNAME records in your DNS. This delay occurs due to DNS propagation times or a mismatch between the selector generated in Salesforce and the record published in your DNS provider.



