DMARC and mailbox delegation pitfalls arise because DMARC judges only the From domain. Delegated mail fails when neither SPF nor DKIM gives a pass aligned with that From domain, such as onmicrosoft.com DKIM plus an unaligned relay.
Delegation puts one person's address on mail that another person, tenant or service actually sends. The mailbox permission model (who may send) and the DMARC model (RFC 7489: which domains authenticated the message, and whether they align with From) are separate. This guide walks through the platform flows where they collide, with header examples.
Does DMARC look at Send As, Send on Behalf or the Sender header?
No. DMARC takes the RFC5322.From domain as its identifier, then checks whether SPF or DKIM passed with a domain that aligns with it. In Exchange, Send As and Send on Behalf both put the principal's address in From, so DMARC judges example.com. The Sender header, which names the delegate, plays no part in the result.
A Send on Behalf message typically looks like this:
From: Exec <exec@example.com>
Sender: Assistant <assistant@example.com>
Whichever permission is used, the delegate's identity is irrelevant to DMARC. What matters is which infrastructure sent the message and which domains it used for the envelope sender (SPF) and DKIM d=. If the delegate's mailbox lives in your tenant, the mail leaves through your tenant and the outcome depends on your tenant's DKIM and SPF setup, covered next.
Why does Microsoft 365 sign with onmicrosoft.com instead of my domain?
If custom DKIM is not enabled for a domain, Exchange Online signs with the tenant's onmicrosoft.com domain. That signature can pass yet never aligns with example.com, so DMARC then depends on SPF alone, which forwarding breaks.
The header evidence:
From: exec@example.com
Authentication-Results: spf=pass smtp.mailfrom=example.com;
dkim=pass header.d=example.onmicrosoft.com;
dmarc=pass header.from=example.com
DMARC passes here only because SPF is aligned. The DKIM pass does not count towards DMARC. Once a recipient forwards the message, SPF no longer matches the forwarder, and the unaligned signature cannot rescue it. Enable custom DKIM for every domain used in delegated From addresses. Microsoft gives you two CNAME records per domain, and you must copy the exact targets shown in your tenant, because the format differs. Older targets look like the first pair; newer tenants and domains get targets like the second pair:
; older format
selector1._domainkey.example.com. CNAME selector1-example-com._domainkey.example.onmicrosoft.com.
selector2._domainkey.example.com. CNAME selector2-example-com._domainkey.example.onmicrosoft.com.
; newer format (use the values your tenant displays)
selector1._domainkey.example.com. CNAME selector1-example-com._domainkey.<tenant>.<n>-v1.dkim.mail.microsoft.
selector2._domainkey.example.com. CNAME selector2-example-com._domainkey.<tenant>.<n>-v1.dkim.mail.microsoft.
After publishing, enable signing for the domain in the admin portal, send a test and confirm header.d=example.com. Repeat for any secondary domain that appears in shared-mailbox or delegated From addresses.
How does Gmail "Send mail as" through external SMTP affect DMARC?
Alignment depends on which server submits the message and which domains it uses. If the message leaves through a server that signs and bounces with another domain, SPF and DKIM may pass for that domain but not align with example.com, so DMARC fails.
What Gmail offers when you add exec@example.com as a "Send mail as" address varies with the account type and, for Workspace, with admin settings, so check which options your account actually shows. Where you can specify an SMTP server, point it at a host that belongs to your own sending infrastructure:
SMTP server: smtp.example.com Port: 587 (TLS)
Then make sure that host is covered by your SPF record and signs with a d= under example.com. Do not assume the result: send a test to a mailbox you control, open the original headers and read the Authentication-Results line. If dmarc=fail appears with header.from=example.com, compare header.d and smtp.mailfrom to your domain. A delegate using a personal mailbox to send as your address is the classic failing case, because nothing in your DNS authorises that path.
What happens when an external delegate sends as my user?
DMARC fails unless that path is aligned. A delegate in another organisation authenticates with their own domains, not yours. The permission may exist, but your DNS never learned about the sender, and neither SPF nor DKIM aligns with example.com.
Typical failing evidence:
From: exec@example.com
Return-Path: <bounce@agency-example.net>
DKIM-Signature: d=agency-example.net; s=sel1; ...
Authentication-Results: spf=pass smtp.mailfrom=agency-example.net;
dkim=pass header.d=agency-example.net;
dmarc=fail header.from=example.com
Your options, from best to worst:
- Route the mail through your own infrastructure. Give the delegate an account or send path inside your tenant so your DKIM and SPF apply.
- Have the agency's system DKIM-sign with your domain. Publish a selector they supply under your domain, so the signature carries
d=example.com. Adding their SPF mechanism to your record does not fix this example: the Return-Path staysagency-example.net, so SPF aligns only if the agency uses a MAIL FROM underexample.com. - Change the From. The delegate sends from their own address, with the executive named in the body or Reply-To.
Avoid weakening your policy to make the failure disappear.
Should the delegated From address stay on example.com or move to a subdomain?
Keep From on example.com unless the vendor can't align; then move it to a subdomain. A subdomain gives the vendor its own DMARC lookup and policy, but it isolates policy, not reputation, because receivers may track reputation at the organizational-domain level.
- From stays
exec@example.com. DMARC looks up_dmarc.example.com. A DKIMd=ofcalendar.example.comstill aligns under relaxed alignment (the default), but fails underadkim=s. - From moves to
exec@calendar.example.com. DMARC checks_dmarc.calendar.example.comfirst, then falls back to the organizational domain's record.
A subdomain without its own DMARC record is governed by the organizational domain's record. Its sp= tag, if present, sets the subdomain policy; without sp=, the p= value applies.
_dmarc.example.com. TXT "v=DMARC1; p=reject; sp=quarantine; rua=mailto:reports@example.com"
Moving to a subdomain only helps if the visible From really moves with it. A delegated sender that keeps example.com in From still puts the main domain's policy in play.
How do I fix delegated senders without breaking mail?
Work one flow at a time: make each delegated path produce an aligned SPF or DKIM pass, confirm it with test messages, and only then tighten policy.
- Enable custom DKIM on every platform that signs for you, including Microsoft 365.
- Keep SPF accurate. Relaying through servers your SPF record authorises does not break SPF. Forwarding, or relaying through unlisted third-party hops, does. SPF allows at most 10 DNS-querying terms (RFC 7208), and exceeding it returns a permerror, so give vendors a subdomain rather than stacking includes on the root.
- Prefer DKIM for alignment. A signature usually survives forwarding if the message is not modified. Mailing lists that rewrite subjects or footers can still break it.
- Test each path with the free domain scanner and the DMARC record lookup, then read real headers.
- Stage enforcement by evidence. The
pcttag applies policy to a sample of failing mail, for examplepct=25, but it is no substitute for fixing sources. Holdp=none, fix sources from reports, then raise the policy once delegated flows align.
How do I find delegation failures in DMARC reports?
Look in aggregate reports for sources that send with your From domain where SPF or DKIM passes but alignment fails. Group them by source IP, envelope domain and DKIM domain to expose delegates that your DNS never authorised.
In the aggregate XML, the DKIM domain appears under auth_results/dkim/domain and the SPF domain under auth_results/spf/domain; header.d is the equivalent term in an Authentication-Results header, not a report field. Typical delegation fingerprints are example.onmicrosoft.com, a personal mailbox provider domain or an agency domain in those fields.
A reporting record is published like this:
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:reports@example.com"
Raw XML is tedious at scale, so DMARC monitoring from yourDMARC, which collects and visualises aggregate reports, makes unfamiliar sources easier to spot. If you would rather hand off the rollout, the managed DMARC service runs it to p=reject for you. For requirements that push you to enforce, see the compliance overview.
Key takeaways
- DMARC judges only the From domain, not the Sender or the delegate. Send As and Send on Behalf permissions do not change the result.
- DMARC fails only when neither SPF nor DKIM produces an aligned pass. One unaligned mechanism is not enough to fail.
- Enable custom DKIM in Microsoft 365, or mail may be signed with onmicrosoft.com and align only through SPF. Copy the CNAME targets your tenant shows, whichever format.
- Gmail "Send mail as" options vary by account and admin settings; where possible, send through an SMTP host you control that is authorised and signs under your domain.
- External delegates need an aligned path, such as DKIM with your
d=, or should send from their own address. An SPF include alone does not align a foreign Return-Path. - A subdomain isolates DMARC policy, not necessarily reputation. Without
sp=, the parentp=policy applies to subdomains. - Stage enforcement using report evidence rather than relying on
pct.










