DKIM failures when sending emails from Salesforce through Gmail are a multifaceted issue stemming from content modification by Gmail's SMTP relay, character encoding discrepancies between Salesforce and Gmail, incorrect DNS settings, DKIM alignment problems, forwarding issues, and misconfigured Gmail/Salesforce setups. Resolutions involve ensuring content integrity during transmission, proper DKIM configuration across platforms, consistent character encoding practices, DNS record verification, header analysis, testing with plain text emails, and potentially disabling Salesforce's DKIM signing.
8 marketer opinions
DKIM failures when sending emails from Salesforce through Gmail often arise from several interconnected issues. These include Gmail's SMTP relay modifying email content after Salesforce has applied its DKIM signature, encoding differences between Salesforce and Gmail leading to altered email bodies, misconfigured Gmail settings, incorrect DNS records, and alignment issues between the DKIM signature's domain and the 'From:' header. Analyzing email headers is crucial for identifying where the alteration occurs, and ensuring proper configuration and consistent encoding practices are essential for resolving the problem.
Marketer view
Email marketer from EmailOnAcid suggests that Salesforce and Gmail should be properly configured to handle DKIM signatures. If Salesforce is signing the email, Gmail needs to be configured to respect that signature and not alter the email content after it's been signed.
6 Sep 2023 - EmailOnAcid
Marketer view
Email marketer from StackExchange explains that forwarding can break DKIM. When an email is forwarded, the content is often modified, causing the DKIM signature to become invalid. When sending from Salesforce via Gmail, Salesforce signs it, but Gmail forwards it on, it breaks the signature.
25 Sep 2021 - StackExchange
4 expert opinions
Experts attribute DKIM failures when sending from Salesforce via Gmail to Google modifying the email body after Salesforce signs it, causing the DKIM hash to be invalid. Character encoding differences between Salesforce and Gmail can also lead to alterations in the email body, further contributing to DKIM failures. Testing with plain text emails, disabling Salesforce DKIM signing in favor of Google Workspace, and opening a support ticket with Salesforce are potential solutions.
Expert view
Expert from Email Geeks suggests that the DKIM signature failing is likely due to Google modifying the body after Salesforce signs it. The expert suggests sending a very plain email as a test and opening a ticket with Salesforce.
17 Jul 2021 - Email Geeks
Expert view
Expert from Spam Resource explains that when sending from Salesforce via Gmail, a DKIM failure often stems from Gmail modifying the email's content after Salesforce has signed it. This alteration, even if minor, invalidates the DKIM signature because the cryptographic hash no longer matches the email body. Potential solutions are ensuring the message is transmitted in a way that preserves the integrity of the content or adjusting the DKIM configuration to accommodate Gmail's handling.
16 Mar 2025 - Spam Resource
5 technical articles
Documentation sources consistently indicate that DKIM failures when sending from Salesforce via Gmail are primarily due to modifications of the email content after the DKIM signature is applied. This alteration, which can occur through Gmail's SMTP relay service or other intermediaries, invalidates the signature as the body hash no longer matches. Additionally, incorrect DNS records and improper DKIM setup are identified as potential contributing factors.
Technical article
Documentation from DKIM.org mentions that common DKIM errors are often due to issues with the body hash not verifying. This indicates that the message body has changed since the signature was generated.
7 Dec 2021 - DKIM.org
Technical article
Documentation from Salesforce Help explains that a common cause of DKIM failure is modification of the email content after it has been signed. This can occur if Gmail alters the message body during transmission, causing the DKIM hash to no longer match the content.
7 Nov 2024 - Salesforce Help
Can DKIM be set up on a subdomain, and which domain should be used for signing?
How do I align SPF and DKIM in Salesforce Service Cloud, and is it necessary if DKIM is already aligned?
How do I fix DKIM alignment errors and configure DKIM signing for a custom domain in Microsoft 365 and is include:spf.mtasv.net required for mailchimp?
How do I fix DKIM failing body hash verification?
How do I set up DKIM on G Suite for outgoing mail, especially when using multiple email services?
How do I set up SPF and DKIM records for new subdomains when using third-party email services?