Blog · Dmarc

Why Exchange Online Shared Mailboxes Fail DMARC When p=reject Is Enabled

When an organization enforces DMARC p=reject, the first unexpected failure that often surfaces is Exchange Online shared mailboxes. Mail stops arriving. Users complain. SPF and DKIM are published. The shared mailbox looks configured correctly. But messages are rejected or silently dropped.

The problem is not the shared mailbox itself. The problem is how Exchange Online sends mail on behalf of shared mailboxes, and how that interacts with DMARC alignment rules.

How Exchange Online Shared Mailboxes Send Mail Under DMARC

DMARC requires alignment between the Header-From domain and the domains verified by SPF and DKIM. For a message to pass DMARC, either the DKIM signing domain or the SPF-verified envelope sender domain must match the From header domain.

When a user sends from an Exchange Online shared mailbox, the mail is transmitted through the Microsoft 365 sending infrastructure. The SMTP envelope MAIL FROM is an address belonging to Microsoft, not the shared mailbox address. The Header-From may display the shared mailbox display name and address, but the actual sending domain in the envelope is onmicrosoft.com.

This means: the DKIM signature is signed by a Microsoft selector, not the organization's domain. SPF is verified against Microsoft's mail servers, not the organization's domain. Neither DKIM nor SPF aligns with the Header-From domain shown as sharedmailbox@yourdomain.com.

The misalignment has always existed. At p=none, it only generated aggregate report entries showing the failure. At p=reject, receivers that honor DMARC started rejecting those messages.

What p=reject Does to Shared Mailbox Delivery

At p=none, DMARC misalignment is recorded but does not affect delivery. At p=reject, any message where neither SPF nor DKIM aligns with the From domain is rejected by participating receivers.

For shared mailboxes, legitimate outbound mail from your own domain gets rejected at external receivers that enforce DMARC. The From header shows support@yourcompany.com, but the DKIM signature is from selector1._domainkey.onmicrosoft.com and the SPF verified sender is mail.protection.outlook.com. No alignment, so DMARC fails.

The fix is not to lower the DMARC policy. The fix is to make shared mailbox sending align with the From domain.

Option 1: Send As with a Dedicated Account and Custom DKIM

Exchange Online shared mailboxes support two sending modes: Send As and Send On Behalf.

Send As sends mail as if it came directly from the shared mailbox identity. When configured with a dedicated user account that has Send As permission and custom DKIM enabled for your domain, the DKIM signature aligns with the From header domain.

The critical requirement is custom DKIM signing. Without it, Exchange Online signs all outbound mail with a Microsoft selector domain regardless of the From header. Custom DKIM means generating DKIM keys for your own domain and publishing them in DNS, so that the DKIM d= tag matches the From domain.

Send On Behalf sends mail where the From header shows actualuser@yourdomain.com on behalf of sharedmailbox@yourdomain.com. The From domain is the shared mailbox address but the envelope sender belongs to the actual sending user. SPF alignment fails.

Send On Behalf is not compatible with DMARC p=reject unless the envelope sender is also aligned.

For organizations that need shared mailbox mail to pass DMARC p=reject, Send As with a dedicated account and custom DKIM is the correct architecture.

Option 2: Route Shared Mailbox Mail Through an Aligned SMTP Relay

Another approach is to send shared mailbox mail through an SMTP relay that is authorized via SPF and signs with aligned DKIM. The relay is an authorized sending point for your domain. As long as SPF covers the relay and DKIM is signed with your domain, DMARC alignment passes.

This approach is architecturally cleaner for high-volume shared mailboxes and gives full control over authentication. The tradeoff is relay management overhead and ensuring the relay is covered by your SPF record.

Option 3: Dedicated Licensed Accounts Per Shared Mailbox

Some organizations assign each shared mailbox its own licensed user account with its own sending credentials. This avoids the shared mailbox sending model entirely and uses normal per-user sending, where SPF and DKIM alignment works as expected.

This approach works but multiplies the number of sending identities to manage. For organizations with many shared mailboxes, it becomes a licensing and management overhead problem.

How to Diagnose Shared Mailbox DMARC Failures in Aggregate Reports

The fastest way to confirm shared mailbox failures is to check DMARC aggregate reports for the organization domain. Look for:

  • policy_evaluated results where dmarctype = fail and disposition = reject or quarantine for shared mailbox addresses
  • auth_results where DKIM result = pass but the d= domain is onmicrosoft.com or another Microsoft-controlled domain
  • auth_results where SPF result = pass but the verified domain is protection.outlook.com or similar M365 infrastructure

If the failures are concentrated on specific From addresses that belong to shared mailboxes, the diagnosis is confirmed. The shared mailbox sending is misaligned with your DMARC policy.

DMARCFlow aggregate reporting surfaces these specific alignment failures across all participating receivers in one view, making it straightforward to identify which sending identities are causing failures and filter by source domain. Without aggregate reports, these failures surface only as individual bounce messages, if they surface at all, making the root cause harder to find.

That visibility is what makes the difference between catching the pattern quickly and discovering it through user complaints.

Why Custom DKIM Signing Is the Practical Fix for Most M365 Tenants

Microsoft 365 supports custom DKIM signing, which lets the tenant sign outbound mail with the organization's own domain rather than Microsoft's. When custom DKIM is enabled, the DKIM d= tag matches the From header domain, achieving DKIM alignment.

For organizations with DMARC p=reject and shared mailboxes, custom DKIM signing is the most practical path to alignment without changing the sending architecture fundamentally. The shared mailbox can send using Send As with a dedicated account, and custom DKIM ensures the DKIM signature aligns with the From domain.

Note that SPF alignment still requires the envelope sender to match the From domain. If the dedicated account's envelope sender is a different domain, SPF alignment fails. For those cases, the envelope sender also needs to align, which typically means the dedicated account needs its own SPF-aligned sending domain or an aligned SMTP relay.

Summary

Exchange Online shared mailboxes fail DMARC alignment when p=reject is enforced because shared mailbox sending uses Microsoft infrastructure for the envelope sender and DKIM signature. Neither aligns with the From header domain shown to recipients.

The fix options are:

  1. Use Send As with a dedicated account that has custom DKIM signing enabled for your domain
  2. Route shared mailbox mail through an aligned SMTP relay that SPF and DKIM cover
  3. Use per-mailbox licensed accounts for sending instead of the shared mailbox model

Custom DKIM signing is the most practical near-term fix for most Microsoft 365 tenants. Check your DMARC aggregate reports to confirm which specific senders are failing alignment, then implement the sending architecture that achieves alignment for those identities.

FAQ

Does enabling custom DKIM signing fix shared mailbox alignment automatically?

Custom DKIM fixes DKIM alignment, but SPF alignment depends on the envelope sender. If the dedicated account sending as the shared mailbox uses an envelope sender that does not match the From domain, SPF alignment still fails. Both need to align for a full DMARC pass. In practice, organizations often achieve DKIM alignment first and then address SPF alignment separately through relay architecture.

Can shared mailboxes pass DMARC without custom DKIM?

In most cases, no. Without custom DKIM, Exchange Online always signs with a Microsoft selector domain. DKIM alignment will fail for any From address on your custom domain. The only exceptions are receivers that do not enforce DMARC strictly, or situations where the envelope sender domain happens to align with the From domain, which is rare for shared mailbox configurations.

Does Send As permission automatically fix the alignment problem?

No. Send As allows the account to send as the shared mailbox identity, but without custom DKIM, the DKIM signature still comes from Microsoft. The From header shows your domain, but the DKIM d= tag shows Microsoft's domain. Alignment still fails. Custom DKIM is required in addition to Send As permission.

What happens to shared mailbox mail at receivers that ignore DMARC?

Mail still arrives. Receivers that do not enforce DMARC policy (many smaller email providers and some legacy systems) deliver mail regardless of alignment failures. This is why the problem may not surface immediately when p=reject is enabled. Mail appears to work for some recipients while failing silently at others.