In short. Your email was refused by the destination server. Depending on the exact wording, either the recipient's domain is badly set up (MX or DNS), or the recipient address simply does not exist. Read the text after 5.4.1 to know which. Fixing the first one is for the recipient's administrator; the second one often only needs a corrected address.
Microsoft documents two meanings for 5.4.1. Relay Access Denied: the mail server generating the error does not accept mail for the recipient's domain, caused by a mail server or DNS misconfiguration. Recipient address rejected: Access denied: the recipient's address does not exist, which Exchange Online reports through Directory Based Edge Blocking.
Last verified: November 26, 2026, against Microsoft Learn's official list of Exchange Online SMTP errors.
If the message is "Relay Access Denied"
- As the recipient's domain owner: check that the domain's MX records point to the server that actually hosts the mailboxes. An MX pointing to a server that does not accept the domain causes this error. Microsoft points to its article on error code 5.4.1.
- As the sender: tell the recipient's administrator, or check you typed the right domain.
- Related: Microsoft's
5.7.1 Unable to relayalso arises when an MX record for a domain points to a system that does not accept that domain.
If the message is "Recipient address rejected: Access denied"
- Check the recipient address for typos.
- If you manage the recipient's Microsoft 365 organization, check that the mailbox or alias exists and read Microsoft's article on Directory Based Edge Blocking, which Microsoft links for this message.
- See also 550 5.1.1.
Free tool. DMARC checker
Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check
Frequently asked questions
Is it a spam block?
No. Neither wording describes a reputation block: one is a routing/DNS problem, the other an unknown recipient.
Where do I check MX records?
In the DNS zone of the recipient's domain, or with a DNS lookup tool. A wrong MX is the typical source of "Relay Access Denied".
Related pages
Sources
Accessed on 11/26/2026.
- Microsoft Learn, Email nondelivery reports (NDRs) and SMTP errors in Exchange Online: https://learn.microsoft.com/en-us/troubleshoot/exchange/email-delivery/ndr/non-delivery-reports-in-exchange-online
- Microsoft Learn, Use Directory Based Edge Blocking to reject messages sent to invalid recipients: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/use-directory-based-edge-blocking