Enhanced Status Code 5.7.0: Other Security or Policy Status
Enhanced Status Code 5.7.0 means “Other Security or Policy Status.” A permanent rejection on security or policy grounds where the receiver has not narrowed the reason further. Gmail uses it for at least ten distinct refusals, so the text after the code is the whole diagnosis.
550 5.7.0 Mail relay denied. Invalid credentials, or the sending domain is not registered with this service
What does 5.7.0 mean?
Enhanced status code 5.7.0 is the catch-all for the security and policy class. RFC 3463 defines X.7.0 as other or undefined security status, meaning something security-related caused the message to be returned but the receiver is not committing to a more specific sub-code.
Google leans on it heavily and in very different situations: relay denied because credentials are invalid or the domain is unregistered, an account suspended for abuse, sending denied outright, too many unauthenticated commands, authentication required, STARTTLS required before proceeding, no identity changes permitted, and content that presents a security issue. Those have almost nothing in common except the class. A 550 5.7.0 about relay denial and a 552 5.7.0 about message content are different problems with different fixes sharing one number.
That makes 5.7.0 the clearest case on the whole site for reading the text rather than the code. The reply code helps narrow it: a 530 5.7.0 is an authentication demand, a 552 5.7.0 concerns the message itself, and a 550 5.7.0 is usually relay or account related. Beyond that, the words the server chose are the only diagnosis available.
How 5.7.0 plays out
5.7.0 rejectionWhere 5.7.0 sits: soft vs hard bounce
| Soft bounce (4xx) | Hard bounce (5xx) | |
|---|---|---|
| Nature | Temporary | Permanent |
| SMTP class | 4xx | 5xx |
| What to do | Let it retry | Suppress the address |
| Recoverable? | Often | No |
| 5.7.0 is | ✓ this code |
What each provider means by 5.7.0
A registered code does not oblige a provider to use it that way, and the large ones diverge. Match the wording in your own bounce, not the definition above.
Common causes of 5.7.0
- Relay was denied because credentials are invalid or the domain is not registered with the service
- The sending account has been suspended for abuse
- Authentication is required and was not supplied, or STARTTLS was required first
- The message content was judged to present a security issue
- Too many unauthenticated commands were issued in one session
- The server refuses identity changes, such as a MAIL FROM that does not match the authenticated user
How to fix 5.7.0
- Read the text after the code, because the sub-reason is the only real diagnosis here
- Use the reply code as a narrowing hint: 530 means authenticate, 552 concerns the message, 550 usually relay or account
- If relay was denied, confirm the sending domain is registered with the relay and the credentials are current
- If authentication is demanded, enable SMTP AUTH over TLS and stop sending unauthenticated
- If the account is suspended, resolve the abuse report rather than retrying
- If content was flagged, audit links, attachments and any redirect service in the message