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.501: not in the IANA registry; the group is security or policy status (RFC 3463 §3.8).
- Who uses it: Microsoft (Exchange Online): access denied, the sending account was banned for detected spam activity.
- Also on this page: 5.7.502, 5.7.503.
A 5.7.501 bounce means Microsoft 365 has stopped the account you send from. It saw spam going out from that account and banned it from sending.
What it means
These are Microsoft's codes, not ones from the IANA registry. Microsoft's Exchange Online NDR reference gives the same cause for three of them: the sending account was banned because of detected spam activity.
- 5.7.501: the text reads
Access denied, spam abuse detected. - 5.7.502 and 5.7.503: the text reads
Access denied, banned sender.
The ban is on one account. A ban on your whole domain has its own code, 5.7.800. So does a ban on a sending IP address, 5.7.606.
Common causes
- Someone else learned the password and used the account to send spam.
- The user answered a phishing message and gave away their sign-in details.
- An app, script or device signed in with the account and sent mail in bulk.
- The account sent a large mailing to people who never asked for it.
How to fix it
Microsoft's steps are short: make sure the account's problems are resolved, reset its credentials, and contact Microsoft Support through your regular channel to restore sending.
If you are the user:
- Forward the full bounce to your email admin.
- Change your password from a device you trust.
If you are the admin:
- Check the account for signs of misuse. Look for sign-ins you do not recognize, mail in Sent Items the user did not write, and new rules that forward or delete mail.
- Reset the password. Turn on multifactor sign-in if the account does not have it.
- Stop any app or script that sends through the account until you know what it sends.
- Contact Microsoft Support and ask for the account's sending to be restored. That is the route Microsoft names for these codes.
- Once the account can send again, keep an eye on what it sends.
What to do with the address
Nothing. The recipient address is not the problem. Your account is. Resend the message once the account works again. If a mailing to a bought list caused the ban, stop using that list. Clean only lists people opted into (email list cleaning).
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.