DEV Community

AdminPackStudio
AdminPackStudio

Posted on

Exchange Online 550 5.4.1 Recipient Address Rejected: A Read-First DBEB, Accepted Domain, and Hybrid Recipient Triage

A sender emails your company and gets a bounce: 550 5.4.1 Recipient address rejected: Access denied. Your mailbox is fine, you can see it in the admin center, and mail from other senders arrives. Or a whole domain bounces right after a migration or a domain change.

Microsoft says this NDR is generated when Directory-Based Edge Blocking (DBEB) in Exchange Online blocks an incoming message because the recipient's address is invalid. This post is a read-first order: confirm the exact text, decide whether one recipient or the whole domain is affected, read the accepted domain type, and only then change anything. Nothing here changes a tenant unless a step says so.

TL;DR

  • The exact text matters. Recipient address rejected: Access denied means DBEB found no matching recipient. Relay Access Denied is a different 5.4.1 (server or DNS misconfiguration).
  • One recipient or everyone? Test another address in the same domain. Microsoft's fix differs for each.
  • DBEB applies when the accepted domain is Authoritative. Microsoft's Q&A guidance says Internal relay gives a 550 5.1.1 RESOLVER.ADR.RecipNotFound instead.
  • Hybrid: an on-premises recipient that is not represented in Exchange Online is the usual one-recipient cause.
  • Allow up to 24 hours for DBEB to update after on-premises mailbox changes.

Step 1: Read the exact error

Microsoft's NDR table lists two different 5.4.1 entries:

5.4.1  Recipient address rejected: Access denied
       The recipient's address doesn't exist (Directory-Based Edge Blocking).
5.4.1  Relay Access Denied
       The server generating the error doesn't accept mail for the recipient's domain
       (mail server or DNS misconfiguration).
Enter fullscreen mode Exit fullscreen mode

This post covers the first one. For the second, look at the sending server's route and the recipient domain's MX records.

Step 2: Check the address

Microsoft's first step is to check the spelling of the recipient address in the NDR. Compare it with the real primary or alias address, character by character. A renamed user whose old address was removed fails the same way.

Step 3: One recipient or the whole domain?

Microsoft's second step: if an email to alina@contoso.com triggers the NDR, check whether other recipients in contoso.com also trigger it.

One recipient bounces, others in the domain work -> go to Step 5
Every recipient in the domain bounces            -> go to Step 4
Enter fullscreen mode Exit fullscreen mode

Step 4: Read the accepted domain type

Read-only, in Exchange Online PowerShell:

Connect-ExchangeOnline

Get-AcceptedDomain | Format-Table Name, DomainName, DomainType
Enter fullscreen mode Exit fullscreen mode

Microsoft documents two types. Authoritative delivers to recipients listed in Microsoft 365 and rejects unknown recipients, which enables DBEB. Internal relay delivers to known recipients and relays unknown ones to your own servers, and needs a connector to the on-premises server.

If every recipient bounces, Microsoft's fix is to resync the domain: in the Exchange admin center, go to Mail flow > Accepted domains, select the domain, switch it from Authoritative to Internal relay, then switch it back to Authoritative.

# CHANGE: only after reading the type above, and only for the affected domain.
# Internal relay means unknown recipients are relayed to your own servers. If no
# connector exists, mail for non-cloud recipients will not be delivered.
Set-AcceptedDomain -Identity contoso.com -DomainType InternalRelay
Set-AcceptedDomain -Identity contoso.com -DomainType Authoritative
Enter fullscreen mode Exit fullscreen mode

Microsoft also advises that during a migration you temporarily keep the type at Internal relay, add and fully replicate all intended recipients, and then change to Authoritative.

Step 5: One recipient, check where the mailbox lives

First confirm the object exists in Exchange Online with the address in question:

# Read-only
Get-Recipient -Identity alina@contoso.com |
  Format-List Name, RecipientTypeDetails, PrimarySmtpAddress, EmailAddresses
Enter fullscreen mode Exit fullscreen mode

If nothing is returned, the recipient is not in Exchange Online. Microsoft's cases for a hybrid environment:

Recipient is Microsoft's fix
On-premises user mailbox, directory sync pushes changes to Entra ID Reset the SMTP proxy address: change it to a temporary address, then revert it to the original
On-premises mail-enabled public folder Verify the folder is synced to Exchange Online; if missing, use the Sync-ModernMailPublicFolder script
On-premises dynamic distribution group Create a mail contact in Exchange Online with the same external address (the group cannot sync to Exchange Online)

For hybrid, Microsoft's DBEB article also notes the domain's MX record must point to Microsoft 365 so that mail routes there first.

What the result means

What you found Likely cause and next move
Typo in the address Sender error; no tenant change
Text says Relay Access Denied Different 5.4.1: check MX and the sending server's routing
Whole domain bounces, type Authoritative Resync by toggling to Internal relay and back (Step 4)
One on-premises user bounces Reset the SMTP proxy address and wait for directory sync (up to 24 hours)
Mail-enabled public folder bounces Confirm it is synced to Exchange Online
On-premises dynamic distribution group bounces Add a mail contact with the same external address

Free tool: https://sysadmin-toolbox.pages.dev/guides/exchange-online-550-5-4-1-recipient-address-rejected/

Common false starts

  • "Switch the domain to Internal relay and leave it." That changes where unknown recipients go and needs a connector. Microsoft says not to use it when all recipients are in Microsoft 365.
  • "Add the address as an alias on a different user to make it work." You may redirect mail to the wrong person. Find who should own it first.
  • "Retest immediately after a hybrid change." Microsoft says allow up to 24 hours.
  • "Treat every 5.4.1 the same." Access denied and Relay Access Denied have different causes.

Related posts

Free checklist

Changing an accepted domain type or exempting a service account from a policy is the kind of change you want planned, not improvised. The free Conditional Access pre-enforcement checklist keeps break-glass accounts, pilot groups, and report-only review on one page:

👉 https://cashflow4375.gumroad.com/l/ujkqxb?utm_source=devto&utm_medium=article&utm_campaign=aps_first_sale&utm_content=exchange-online-5-4-1-recipient-address-rejected


Sources: Microsoft Learn, "Fix NDR error 550 5.4.1 in Exchange Online", "Use Directory-Based Edge Blocking to reject messages sent to invalid recipients in Exchange Online", "Manage accepted domains in Exchange Online", and "Email nondelivery reports (NDRs) and SMTP errors in Exchange Online". Commands are read-only unless marked CHANGE. Test in a lab first.

Top comments (0)