Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

compauth=fail reason codes in the Authentication-Results header

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A message reaches Microsoft 365 and the Authentication-Results header carries a line that ends compauth=fail reason=001, or reason=000, or a code that nobody on the team recognises. Composite authentication, written compauth for short, is Microsoft 365's own combined verdict on whether a message is genuinely from the domain in its From address. The reason is a three-digit code that says why. A message with compauth=fail is not automatically blocked, and one with compauth=pass is not automatically safe.

This decodes the codes as Microsoft's pages print them, shows how to connect them to the SPF, DKIM and DMARC results beside them, and sets out the changes Microsoft documents, with the save and undo steps they need. Nothing before the Fix section changes anything.

What the error means

Microsoft 365 checks inbound mail with "implicit email authentication", which extends SPF, DKIM and DMARC with signals such as sender reputation, sender history, recipient history and behavioural analysis. The combined result is stored in compauth, in the form Authentication-Results: compauth=<fail | pass | softpass | none> reason=<yyy>. The three-digit reason says why the result passed or failed, and it uses the From domain as the basis of evaluation.

Microsoft's authentication page carries a tip that matters before anything else: "a composite authentication failure doesn't directly result in a message being blocked". The system weighs "the overall suspicious nature of a message along with composite authentication results", and the message header page says: "Despite a compauth failure, the message might still be allowed if other assessments don't indicate a suspicious nature."

The reason codes that mean a failure:

Reason Microsoft's description
000 The message failed explicit authentication (compauth=fail). The message received a DMARC fail and the DMARC policy action is p=quarantine or p=reject
001 The message failed implicit authentication (compauth=fail). The sending domain didn't have email authentication records published, or if they did, they had a weaker failure policy (SPF ~all or ?all, or a DMARC policy of p=none)
002 The organization has a policy for the sender/domain pair that's explicitly prohibited from sending spoofed email. An admin manually configures this setting
010 The message failed DMARC, the DMARC policy action is p=reject or p=quarantine, and the sending domain is one of your organization's accepted domains (self-to-self or intra-org spoofing)
6xx The message failed implicit email authentication (compauth=fail)
601 The sending domain is an accepted domain in your organization (self-to-self or intra-org spoofing)

The other codes the page defines, for recognising a header that is not a failure:

Reason Result Microsoft's description
1xx pass The message passed explicit or implicit authentication; 100 to 104, 108, 109, 111, 112, 115, 116 and 130 say how, for example SPF or DKIM aligned with the From domain, or a trusted ARC sealer overriding a DMARC failure
2xx softpass The message soft-passed implicit authentication; 201 and 202 relate to the PTR record of the connecting IP
3xx, 4xx, 9xx none The message wasn't checked, or bypassed composite authentication; 905 means DMARC wasn't enforced due to complex routing
501, 502 not stated DMARC wasn't enforced because the message is a valid non-delivery report
7xx pass The message passed implicit authentication; 701 to 704 mean DMARC wasn't enforced because the organization has a history of legitimate mail from the sending infrastructure

The compauth line sits beside spf, dkim and dmarc results, which the same page defines: spf can be pass, fail, softfail, neutral, none, temperror or permerror; dkim pass, fail with a reason, or none; dmarc pass, fail, bestguesspass or none.

Likely causes

Microsoft's authentication troubleshooting page, dated 2026-05-27, ties reasons 000, 001, 002 and 010 to a cause and a page of guidance. Read these as Microsoft's own pairings, not as a ranking.

Reason Cause on Microsoft's page Guidance page named
000 DMARC check failed and the DMARC policy is p=quarantine or p=reject Authentication-Results message header
001 The sending domain has no email authentication records, or has a weak failure policy (~all or ?all) Authentication-Results message header
002 A sender/domain pair is explicitly blocked from sending spoofed email in the organization Spoof intelligence insight
010 DMARC failed with the sender's policy set to reject or quarantine, and the sending domain is one of your organization's accepted domains Spoof settings in anti-phishing policies

The same page gives header examples for the combinations behind those codes: SPF and DKIM both fail (with reason=000), SPF passes but the SPF domain does not align with the From domain and DKIM fails (with reason=001), a gateway or relay that modifies the body so DKIM fails, forwarding that breaks SPF, a marketing service that signs with its own domain, and a cloud email security gateway.

One example on that page does not match the definition of 001 on the header page. The troubleshooting page's partner example reads Authentication-Results: spf=pass smtp.mailfrom=wingtiptoys.com; dkim=pass header.d=wingtiptoys.com; dmarc=pass header.from=wingtiptoys.com; compauth=fail reason=001. Microsoft's header page defines 001 as a sending domain with no authentication records or a weak policy, yet here SPF, DKIM and DMARC all pass. The troubleshooting page's explanation is that "Spoof intelligence is likely flagging the partner domain due to cross-tenant trust issues." Both statements are as printed, and neither page reconciles them.

Prove the cause before changing anything

All of these steps read only.

  1. Get the full headers of the message and find the Authentication-Results header. Note compauth and reason, then the spf, dkim and dmarc results, smtp.mailfrom, header.d and header.from. Microsoft's pages name the Message Header Analyzer at https://mha.azurewebsites.net/ for parsing them.

  2. Compare the three domains. SPF is evaluated for the MAIL FROM domain (smtp.mailfrom, also called the envelope sender), DKIM for the signing domain (header.d), and both are compared with the From domain (header.from) that the recipient sees. DMARC needs a pass from SPF or DKIM that aligns with the From domain.

  3. Match what you see to a combination on the troubleshooting page: SPF pass with a different domain is the alignment case, DKIM fail with a body hash note is the modification case, and SPF fail with DKIM pass is the forwarding case.

  4. For reason 002 or 010, look at the organisation's own settings: Microsoft names the spoof intelligence insight for 002 and the spoof settings in anti-phishing policies for 010. Neither is a read of the message itself.

  5. If you own the sending domain, check its DNS records. Microsoft's pages say only one SPF TXT record is allowed per domain, that exceeding the 10 DNS lookup limit causes permerror, and that DKIM needs two CNAME records at the registrar. As a read-only check of Microsoft 365's own DKIM state, the DKIM page gives Get-DkimSigningConfig | Format-List Name,Enabled,Status,Selector1CNAME,Selector2CNAME for Exchange Online PowerShell.

Example (illustrative): a firm's invoicing software sends from its own server with the From address accounts@contoso.com.au. The header reads spf=none, dkim=none, dmarc=none action=none and compauth=fail reason=001. The domain has no authentication records, which is what 001 describes.

Fix

Which fix applies depends on which side of the message you are on and which combination you found. The SPF, gateway and forwarding remedies are described, not given as commands, because Microsoft's pages give no command for those DNS and mail-system changes.

Sender: make an aligned pass exist

Microsoft's pages say the pass has to align with the From domain. Their documented remedies are: add the sending service's IP address or include to the domain's single SPF record (the page's example is v=spf1 ip4:<sending-IP> include:spf.protection.outlook.com ~all), enable DKIM signing for the From domain, and for a gateway that modifies mail, configure ARC, have the gateway sign after it modifies the message, or add the gateway to Enhanced Filtering for Connectors. The page says to fix SPF first because it is a DNS change only, then DKIM, and to set the TTL for an SPF TXT record to at least 3600 seconds. As general advice, any DNS change should begin with a copy of the record as it stands.

To enable DKIM signing for a domain that is already listed in Microsoft 365, first record its state with Get-DkimSigningConfig | Format-List Name,Enabled,Status,Selector1CNAME,Selector2CNAME, which only reads. Proceed only if the domain shows Enabled False and the two CNAME records are already published at the domain's registrar.

Disruptive step: the next command turns on DKIM signing for outbound messages from the domain, so every message the tenant sends from it carries a signature that receiving systems will try to verify. Microsoft's DKIM page says that if the CNAME records are not detected, the command returns an error that contains the values to use in them, and its troubleshooting section lists CNAME mistakes, such as a missing selector2 record, that make verification fail on the receiving side. If the domain is not listed at all, the page's route is New-DkimSigningConfig; the page gives no command that removes what it creates, so that route is not given here.

Set-DkimSigningConfig -Identity <Domain> -Enabled $true

To undo it, use the page's disable command for the same domain, described under the next heading with its own warning.

Back out the DKIM change

Only if you need to reverse this change:

Disruptive step: the command in the next sentence stops Microsoft 365 adding a DKIM signature to outbound messages from the domain, which returns it to the state recorded above.

Run Set-DkimSigningConfig -Identity <CustomDomain> -Enabled $false in Exchange Online PowerShell.

Receiver: allow one spoofed sender pair

For a partner whose mail fails composite authentication although the partner's own SPF, DKIM and DMARC pass, the troubleshooting page adds an allow entry for the spoofed sender in the Tenant Allow/Block List. First record what is already there with Get-TenantAllowBlockListSpoofItems, which only reads.

Risk: the next command allows one pair, a spoofed user together with its sending infrastructure, to spoof, which means mail that matches the pair is no longer treated as a spoofing attempt. The tenant page says allow entries for spoofed senders "never expire" and that only the combination of the spoofed user and the sending infrastructure in the domain pair is allowed. Use the narrowest pair that matches the mail. A spoofed user and sending infrastructure that are both wildcards are not allowed.

New-TenantAllowBlockListSpoofItems -Identity Default -Action Allow -SpoofedUser <Domain | EmailAddress> -SendingInfrastructure <Domain | IPAddress/24> -SpoofType <External | Internal>

Microsoft's tenant page gives this syntax, and says a sending infrastructure given as a domain must match the PTR record for the connecting IP in the Authentication-Results header. The troubleshooting page's own example uses -SpoofedUser "*@wingtiptoys.com" and omits -Identity; the tenant page lists an address, a domain or * as valid spoofed user values, so the form above follows the tenant page.

To undo it: run Get-TenantAllowBlockListSpoofItems again, which only reads, to find the Identity value of the entry you added, then remove only that entry as described under the next heading.

Back out the allow entry

Only if you need to reverse this change:

Risk: the command in the next sentence deletes the spoofed sender entry you name, so mail matching that pair is evaluated without the allow entry again. The page gives no way to restore a deleted entry other than creating it again.

Run Remove-TenantAllowBlockListSpoofItems -Identity domain.com\Default -Ids <Identity value>, where the page prints the identity as domain.com\Default, as shown here. Its create command uses -Identity Default, and the page does not explain the difference.

Confirm the fix

  • A fresh message shows compauth=pass with a reason from the 1xx or 7xx range, or at least no longer shows the same fail reason. The old message's header does not change.
  • For DKIM, Microsoft's page says to wait a few minutes after the change, send a message from the domain to an outside mailbox such as outlook.com or gmail.com, and read the DKIM-Signature and Authentication-Results headers there. It says not to use AOL for the test, and that mail between two addresses in the same domain carries no DKIM signature.
  • For a spoof allow entry, the page says an entry should be active within 5 minutes, and Get-TenantAllowBlockListSpoofItems lists it with its action and spoof type.

What to watch afterwards

  • Reasons 701 to 704 and 905, which mean DMARC was not enforced, not that authentication was correct.
  • Allow entries for spoofed senders, which never expire and count toward a limit of 1024 spoofed sender entries.

Risks and limits

These steps have not been run or lab-tested. The reason-code table is Microsoft's, and Microsoft names sender reputation, sender history, recipient history, behavioural analysis and other advanced techniques as implicit signals, so the code says why a result was reached but not what the filter weighed. The 001 code appears in an example whose SPF, DKIM and DMARC pass, which the header page's definition does not cover. The page says the partner allow entry has no expiry (it says such entries "never expire"). Our reading, not the page's: the entry lowers a protection for one sender pair.

Sources