SMTP

SMTP 221 Closing Connection vs 553 Mailbox Name Invalid

SMTP 221 (Closing Connection) is a 2xx Positive Completion response, while 553 (Mailbox Name Invalid) is a 5xx Permanent Negative response. 221 indicates that the server is closing the transmission channel. This is the normal response to the QUIT command, indicating a graceful end to the SMTP session. In contrast, 553 means that the requested action was not taken because the mailbox name is syntactically incorrect. The email address does not conform to the expected format.

Описание

The server is closing the transmission channel. This is the normal response to the QUIT command, indicating a graceful end to the SMTP session.

Когда вы это видите

After sending the QUIT command at the end of a mail session. The server acknowledges the disconnect and the TCP connection will be closed.

Как исправить

No fix needed — this is the expected response when ending an SMTP session. If you see this unexpectedly, the server may be shutting down or timing out idle connections.

Описание

The requested action was not taken because the mailbox name is syntactically incorrect. The email address does not conform to the expected format.

Когда вы это видите

When the sender or recipient address contains invalid characters, improper formatting, or violates the server's naming conventions.

Как исправить

Check the email address format — ensure it follows the standard [email protected] pattern with valid characters. Remove any spaces, special characters, or encoding issues from the address.

Ключевые различия

1.

221 is a 2xx Positive Completion response, while 553 is a 5xx Permanent Negative response.

2.

SMTP 221: The server is closing the transmission channel. This is the normal response to the QUIT command, indicating a graceful end to the SMTP session.

3.

SMTP 553: The requested action was not taken because the mailbox name is syntactically incorrect. The email address does not conform to the expected format.

4.

You encounter 221 when after sending the QUIT command at the end of a mail session. The server acknowledges the disconnect and the TCP connection will be closed.

5.

You encounter 553 when when the sender or recipient address contains invalid characters, improper formatting, or violates the server's naming conventions.

Когда что использовать

For 221 (Closing Connection): No fix needed — this is the expected response when ending an SMTP session. If you see this unexpectedly, the server may be shutting down or timing out idle connections. For 553 (Mailbox Name Invalid): Check the email address format — ensure it follows the standard [email protected] pattern with valid characters. Remove any spaces, special characters, or encoding issues from the address.

Узнать больше