web
You’re offline. This is a read only version of the page.
close
Views:

Question


DKIM was implemented for the customers domain within Microsoft 365.

We notice that the dkim failure in the message header:
dkim=fail (body hash did not verify)

 

Workaround


What we have seen in the message headers, of Tenants with DKIM enabled is the below:

3. Email from M365 to Recipient: DKIM signature added DKIM passes

2. Emails from Crossware to M365: DKIM fails

1. Email From M365 to Crossware: the DKIM signature is added


Flow of Mail: Your Tenant M365 Tenant -> Crossware -> Your Tenant M365 Tenant -> Destination



Crossware does not usually remove any Header information.

However, attached is code for Field which can be used to remove the DKIM field, when it is being processed by Crossware.

The Field needs to be added to the signature configuration. Below are steps on how to create and add a field:

 

1. Log into Crossware portal

 

2. From the menu on the left go to Fields > Click on the FORMULA tab > Select the option Create formula field

 

3. Field Name - Dkim_Removal > In the Formula window, paste the attached code

 

5. Save the new field.



6. You now need to add this lookup to you Signature, it will not display anything but it's a blank field that will trigger the removal action Edit a signature > Add the new DKIM formula field to this signature (anywhere) below your signature, this will trigger the DKIM.

 


Below is the Updated Code to use in the DKIM removal field:


string strTemp = "";

if(pEmailHeaders.ContainsKey("DKIM-Signature")){ 
pEmailHeaders.Remove("DKIM-Signature");


if(pEmailHeaders.ContainsKey("dkim-signature")){ 
pEmailHeaders.Remove("dkim-signature");


if(pEmailHeaders.ContainsKey("ARC-Authentication-Results")){ 
pEmailHeaders.Remove("ARC-Authentication-Results");


if(pEmailHeaders.ContainsKey("ARC-Message-Signature")){ 
pEmailHeaders.Remove("ARC-Message-Signature");


if(pEmailHeaders.ContainsKey("ARC-Seal")){ 
pEmailHeaders.Remove("ARC-Seal");


if(pEmailHeaders.ContainsKey("arc-message-signature")){ 
pEmailHeaders.Remove("arc-message-signature");


if(pEmailHeaders.ContainsKey("arc-seal")){ 
pEmailHeaders.Remove("arc-seal");


if(pEmailHeaders.ContainsKey("Authentication-Results")){ 
pEmailHeaders.Remove("Authentication-Results");


if(pEmailHeaders.ContainsKey("authentication-results")){ 
pEmailHeaders.Remove("authentication-results");



if(pEmailHeaders.ContainsKey("X-MS-Exchange-SenderADCheck")){ 
pEmailHeaders.Remove("X-MS-Exchange-SenderADCheck");
}

if(pEmailHeaders.ContainsKey("X-MS-Exchange-Authentication-Results")){ 
pEmailHeaders.Remove("X-MS-Exchange-Authentication-Results");
}

return strTemp;



Remove DKIM (txt)

Related Products: CMS M365, Designer 6 (for CMS M365)