Bounce code · Permanent

5.7.504: Microsoft 365 rejected the recipient address

Microsoft 365 refused the recipient address and says it is not valid. It is permanent: retrying the same address fails the same way. Check the spelling, and confirm the address with the person another way before you send to it again.

How to fix itEvery bounce code

PermanentSecurity or policy status

5.7.504

What happens
Not retried
Registry name
Not in the IANA registry
Who uses it
Microsoft (Exchange Online)

At a glance

  • Type: permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
  • Basic code: varies; the enhanced code is the part that identifies the problem.
  • Enhanced code 5.7.504: not in the IANA registry; the group is security or policy status (RFC 3463 §3.8).
  • Who uses it: Microsoft (Exchange Online): recipient address rejected, access denied (5.7.504), or banned recipient (5.7.505).
  • Also on this page: 5.7.505.

A 5.7.504 bounce means Microsoft 365 would not take mail for the address you wrote to. The problem is the recipient address, not your server or your message.

What it means

These are Microsoft's codes, not ones from the IANA registry. Microsoft's Exchange Online NDR reference lists two of them for a refused recipient:

  • 5.7.504: the text reads Recipient address rejected: Access denied, after the address. Microsoft says the recipient address isn't valid, and asks you to verify it and try again.
  • 5.7.505: the text reads Access denied, banned recipient. Microsoft says the recipient isn't valid. It gives no reason for the ban.

Microsoft does not say that either address has no mailbox. It says only that the address is not valid. One form of 5.4.1 uses the same "Recipient address rejected" wording for an address missing from the organization's directory.

Common causes

For 5.7.504:

  • A typo in the address, before or after the @.
  • The address was copied from a form or a signup that nobody checked.
  • The address belonged to someone who has left or changed names.

For 5.7.505, Microsoft names no cause. Read the full text of the bounce for any detail it adds.

How to fix it

If you are the sender:

  1. Read the address in the bounce one character at a time.
  2. Confirm it with the person by phone, chat or another email address.
  3. Send once to the corrected address.
  4. For 5.7.505, do not try other accounts or servers to get past the ban. Reach the person another way if the message matters.

If you run the recipient's organization:

  1. Check that the address belongs to a mailbox, group or contact in your directory.
  2. For 5.7.505, the NDR reference says to contact support if you think the ban is a mistake.

What to do with the address

For 5.7.504, do not keep sending to the address as it is. If you find a typo, replace it with the corrected address. If you cannot confirm the address with the person, suppress it. A second 5.7.504 for the same address is reason enough to stop.

For 5.7.505, suppress the address at once. Microsoft says the recipient is banned and not valid. Keep it in your suppression list rather than deleting the record. Take it off only if the person confirms the address receives mail again.

Many bounces from addresses that do not exist can be avoided: check an address with our free email checker, or clean a whole list before you send.

Get up to 500 free credits. No card needed.

Fewer bounces start with a clean list: check addresses before you send.

Updated · Maintained by: Email Validation LLC