A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Hi i had uploaded the EML again, please check if possible. Thanks team!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We have an Exchange Online tenant using example.com as a custom domain.
An outbound email has the following headers when it first reaches our email gateway:
From: [email protected]
DKIM-Signature: d=example.onmicrosoft.com; s=selector1-example-onmicrosoft-com;
However, Microsoft's ARC-Authentication-Results in the same message shows:
dkim=pass header.d=example.com; dmarc=pass header.from=example.com;
The email is captured at our gateway immediately after being sent from Microsoft 365, and the DKIM signature is already d=example.onmicrosoft.com.
This causes a potential DMARC alignment issue for downstream mail servers. If a receiving server enforces a strict DMARC policy, the onmicrosoft.com DKIM signature does not align with the visible example.com From domain. As a result, DMARC may fail and the message can be classified as spam or rejected, depending on the receiving domain's policy.
Why does Exchange Online report DKIM authentication for example.com in the ARC results, while the actual outbound DKIM signature uses example.onmicrosoft.com?
Is this expected behavior, or should DKIM for the custom domain example.com be enabled/configured differently?
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Hi i had uploaded the EML again, please check if possible. Thanks team!
Thanks for the clarification.
I don't have administrative access to the sender's Exchange Online tenant. I operate the email gateway on the forwarding path and am investigating a DMARC alignment issue observed downstream.
From the message headers we captured when the email first reaches our gateway, we see:
From: [email protected]
DKIM-Signature:
d=example.onmicrosoft.com
This DKIM signature authenticates successfully, but it does not align with the visible From domain example.com.
After the message is forwarded through our gateway, we use SRS, so SPF also passes authentication but the envelope sender uses our gateway domain. Therefore, SPF is no longer aligned with the original From domain either.
As a result, downstream receiving servers that enforce DMARC strictly can evaluate the forwarded message as DMARC fail and may quarantine it as spam or reject it.
We understand that signing with the onmicrosoft.com domain may be expected if DKIM for the custom domain is not enabled. However, we would like to understand whether there is a recommended configuration on the Microsoft 365 sender side that would allow the outbound message to carry a DKIM signature aligned with the custom From domain.
Could you please confirm:
The AI-generated answer provides helpful information and correctly explains that Microsoft 365 may sign mail with the *.onmicrosoft.com domain if DKIM is not enabled for the custom domain. It also provides appropriate guidance to verify the DKIM configuration using Get-DkimSigningConfig.
However, I would suggest a minor adjustment: while a DKIM-Signature of d=example.onmicrosoft.com can be expected when custom-domain DKIM is not enabled, the documentation does not specifically explain why ARC-Authentication-Results shows dkim=pass header.d=example.com while the visible DKIM signature uses example.onmicrosoft.com. Therefore, reviewing the complete message headers and confirming the DKIM configuration for example.com would be recommended before drawing a final conclusion.
Please try running the PowerShell to verify the status:
Get-DkimSigningConfig | Format-List Name,Enabled,Status,Selector1CNAME,Selector2CNAME
AI answer
Yes, this is expected if DKIM signing for the custom domain is not enabled and Microsoft 365 is signing with the tenant’s *.onmicrosoft.com domain instead.
Key points:
*.onmicrosoft.com is signed by default
*.onmicrosoft.com domain by default.example.com, DKIM signing needs to be enabled for that domain. Get-DkimSigningConfig | Format-List Name,Enabled,Status,Selector1CNAME,Selector2CNAME
Enabled: False and Status: NoDKIMKeys or CnameMissing, create the required CNAME records and then enable DKIM:
Set-DkimSigningConfig -Identity example.com -Enabled $true
example.onmicrosoft.com, that DKIM domain does not align with From: [email protected].dkim=pass header.d=example.com
header.d=example.com while the visible outbound DKIM-Signature is d=example.onmicrosoft.com.d=example.onmicrosoft.com, then custom-domain DKIM for example.com should be checked and enabled if the goal is aligned DKIM for example.com.example.com appears in Get-DkimSigningConfig.Selector1CNAME and Selector2CNAME values for example.com.example.com.example.com:
Set-DkimSigningConfig -Identity example.com -Enabled $true
DKIM-Signature header exists.d=example.com.Authentication-Results includes DKIM=pass or DKIM=OK.If sender and recipient are in the same domain, or in different domains controlled by the same organization, Microsoft 365 can omit the DKIM signature entirely, so testing should be done by sending to an external mailbox in another email system.