Blazalek.com

5.7.0SMTP 5.7.0: Other or undefined permanent security status

The message was permanently rejected because of a security-related problem, but the response does not describe it more precisely. Do not retry the unchanged send.

Category
Security, authentication and policy
Class
Permanent failure
Retry
Do not retry unchanged
Suppression
Check the full context

TL;DR

A permanent catch-all for security-related rejections when the server gives no more specific X.7 detail. The cause must come from the full response, not the code alone. Repeated policy blocks can signal deliverability or reputation risk if misconfiguration persists. Do not retry the unchanged send.

What this code means

Security-related conditions that no available X.7 subcode can name return under pattern X.7.0 as code 5.7.0 in the enhanced status register. Permanent class 5 attaches to this generic security detail for the attempt. The code may also appear when an applicable security policy limits how precisely the condition can be described. The numeric reply names a security-class refusal without identifying a particular mechanism, rule, or responsible party, and it does not establish that the recipient address is invalid.

Provider examples

Rackspace example
550 5.7.0 [blocked file] - File attachment is not allowed because they can be used to exploit Winzip (G1C)
Rackspace example
550 5.7.0 [blocked file] - Your message has been rejected because it contains a banned file attachment (G1A)
Gmail example
552 5.7.0 This message was blocked because its content presents a potential security issue. To review our message content and attachment content guidelines, go to File types blocked in Gmail. - gsmtp
Gmail example
503 5.7.0 No identity changes permitted. For more information, go to About SMTP error messages. - gsmtp
Gmail example
550 5.7.0 Email relay denied ip-address. Invalid credentials for relay for one of the domains in: domain-name (as obtained from HELO and (E)MAIL FROM). Email is being sent from a domain or IP address which isn't registered in your Workspace account. Please login to your Workspace account and verify that your sending device IP address has been registered within the Workspace SMTP Relay Settings. For more information, go to SMTP relay service error messages. - gsmtp
Gmail example
550 5.7.0 Email sending denied. For more information, go to SMTP relay service error messages. - gsmtp
Gmail example
554 5.7.0 Too many unauthenticated commands. For more information, go to About SMTP error messages. - gsmtp
Gmail example
 552-5.7.0 Our system detected an illegal attachment on your message. Please visit http://mail.google.com/support/bin/answer.py?answer=6590 to review our attachment guidelines.
proofpoint example
smtp;550 5.7.0 Email rejected per sender's DMARC policy

Technical meaning

Returning a message for a security-related condition that cannot be properly expressed by another available detail code is X.7.0. The code may also be used when an applicable security policy prevents the condition from being described more precisely. In the concrete 5.7.0 form, the leading digit assigns the result to permanent class 5.

Delivery status

The leading digit 5 denotes a permanent failure of the current attempt. The code alone identifies neither a particular security mechanism, policy rule, nor responsible party, and it does not establish that the recipient address is invalid.

Class
Permanent failure
Retry
Do not retry unchanged
Suppression
Check the full context

Retry decision

Operational guidance: stop automatic and manual retries of the same unchanged send. Consider a new send only after establishing the cause from the full context and confirming a relevant change in the condition or configuration.

Suppression decision

Operational guidance: do not automatically suppress the address based on general code 5.7.0 alone. Inspect the full response, security context, delivery history, and other permanent signals; make the suppression decision only according to the established cause and applicable policy.

Common causes

  • A permanent security-related condition caused the message to be returned, but the reporting system could not describe it with a more specific available code.
  • An applicable security policy may have prevented the system from disclosing a more precise description of the condition.

Diagnostic steps

  1. Inspect the raw SMTP response or delivery report and confirm that the enhanced code is exactly 5.7.0 and that the basic reply is in the 5xx class.
  2. Correlate the response with the intended message, attempt time, transaction stage, and system that returned the code; retain the full response text and available security context because the code itself is general.
  3. Inspect available logs to determine whether the system recorded a more specific X.7.x condition or limited detail under its security policy; do not assign a specific cause from 5.7.0 alone.
  4. Stop unchanged retries; before any new send, confirm a relevant change and check suppression state again.

Actions by owner

Sender

  • Confirm that the send was intended and that the recipient should still receive the message; give the sender administrator the attempt time and complete available context without manually retrying the unchanged send.
  • Do not change credentials or security settings based on the code alone; follow only a confirmed administrator instruction.

Sender administrator

  • Stop retries of the unchanged send and retain the raw response, time, transaction stage, and system that returned the code; check suppression state and available logs without assuming a specific cause.
  • Give the collected context to the recipient administrator or provider if the cause remains unclear; permit a new send only after a relevant change has been confirmed and suppression has been checked again.

Recipient administrator

  • If the code came from a recipient system you manage, inspect its security and policy logs for the specified time and attempt to identify a more precise condition when policy permits disclosure.
  • Correct the confirmed condition within your control if delivery should be allowed; otherwise provide the permitted context and, when safe, return a more specific status code.

Provider

  • If you operate a system involved in the attempt, inspect managed-service logs and the security rules applied at the specified time; do not assign a particular cause from the code alone.
  • Correct the confirmed problem in the managed layer or preserve the intended policy rule; when policy permits, return a more specific X.7.x code instead of general 5.7.0.

Sources

These sources define what this enhanced status code means, mainly through the IANA registry and related RFCs. When provider examples appear on the page, they come from that provider's published documentation. Follow the links to read the original wording in context.

Last verified:

Found an error or inaccuracy? Report a correction.

Point out the part of this page that should be checked. Every report is reviewed manually.

Type of problem

Describe the issue and, if useful, suggest corrected wording.

For a factual report, include a public source when possible.

You can submit anonymously. A reply is not guaranteed.

Do not paste full bounce messages, headers, email addresses, Message-IDs, tokens, or other personal data. Redact evidence before sending.

Sending a correction shares the information you enter with Formspree so I can review and improve this page. Read the privacy notice.

Guide

  • Deliverability

    Read the code class and full reply; 5.7.0 alone names no cause.

  • Deliverability

    SPF/DKIM/DMARC and related auth policy are required for inbox delivery.

Incidents

Wojtek Blazalek

Email deliverability expert

Stuck on this error code? I help teams identify rejection causes and fix authentication and reputation, so email reaches the inbox.

Hands-on deliverability work for teams that send at scale.