Suped

Summary

When emails sent from Salesforce via Gmail experience DKIM failures, despite SPF and DMARC passing, it often points to an issue where the email body is altered after the DKIM signature is applied by Salesforce. This modification, even slight, can invalidate the original DKIM hash, leading to a body hash did not verify error. This problem can be particularly elusive because the DKIM record itself might be correctly published and pass independent checks.

Suped DMARC monitor
Free forever, no credit card required
Get started for free
Trusted by teams securing millions of inboxes
Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo

What email marketers say

Email marketers often face challenges with DKIM failures when integrating Salesforce with Gmail, particularly when SPF and DMARC appear to pass. The primary concern among marketers revolves around the suspicion that Gmail might be subtly altering email content, leading to body hash did not verify errors. This troubleshooting process can feel like a complex puzzle, requiring deep dives into email headers and iterative testing.

Marketer view

A marketer from Email Geeks describes a scenario where configured sending from Gmail in Salesforce sales and service cloud resulted in SPF and DMARC passing, but DKIM failed. The header checker showed 'neutral with domain my company.com', leading to the assumption that Gmail was slightly altering the original email and causing DKIM failure.

03 Aug 2024 - Email Geeks

Marketer view

A marketer from Salesforce Ben suggests that DKIM (DomainKeys Identified Mail) is crucial for email security, as it helps prove that no one has altered your email en-route from the sender to the recipient's email server. It serves as a vital authentication method alongside SPF.

22 May 2023 - Salesforce Ben

What the experts say

Email deliverability experts highlight that DKIM failures, particularly body hash did not verify errors, are almost always due to content modification after the DKIM signature is applied. When Salesforce signs the email and then it's relayed through Gmail, any change, no matter how minor, can break the signature. Experts advise on meticulous header analysis and systematic testing of email content to isolate the cause.

Expert view

An expert from Email Geeks explains that without access to specific data, such as the exact domain and full email headers, any diagnosis is merely speculation. They note that Google typically does not alter emails, but a recipient's Google Workspace might route mail through third-party spam filters like Proofpoint, which could modify messages and cause DKIM failures.

03 Aug 2024 - Email Geeks

Expert view

An expert from Marc's Security Blog notes that Google was rejecting Salesforce DKIM signed messages. They found that reducing the DKIM key length in Salesforce from 2048 to 1024 bits and publishing those keys seemed to resolve the issue.

03 Aug 2023 - Marc's Security Blog

What the documentation says

Official documentation and technical guides emphasize the importance of correct DKIM, SPF, and DMARC configurations for email deliverability. For Salesforce, specific steps are provided to set up DKIM keys, often involving CNAME records in DNS. The core principle of DKIM, as outlined in documentation, is to ensure message integrity, meaning any modification post-signing will invalidate the signature. This underscores why authentication failures occur when content is altered by intermediate systems like Gmail's relay.

Technical article

Documentation from Salesforce Ben states that DomainKeys Identified Mail (DKIM) was developed after SPF to ensure that no one alters your email during its journey from the sender to the recipient's email server. It adds an additional layer of verification.

22 May 2023 - Salesforce Ben

Technical article

Documentation from Cloud on Purpose provides detailed instructions on how to set up Salesforce SPF and DKIM, specifically noting the process for publishing CNAME records in your DNS. This is crucial for proper email authentication.

28 Feb 2024 - Cloud on Purpose

11 resources

Start improving your email deliverability today

Get started