SMTP

SMTP 221 Closing Connection vs 550 Mailbox Not Found

SMTP 221 (Closing Connection) is a 2xx Positive Completion response, while 550 (Mailbox Not Found) 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, 550 means that the requested action was not taken because the mailbox does not exist or the recipient address is rejected by policy. This is a permanent failure indicating the address is invalid or blocked.

คำอธิบาย

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 does not exist or the recipient address is rejected by policy. This is a permanent failure indicating the address is invalid or blocked.

เมื่อคุณพบเห็น

When sending to an email address that does not exist on the destination server, or when the server's policy rejects your message (e.g., anti-spam, sender verification failure).

วิธีแก้ไข

Verify the recipient's email address for typos. If the address is correct, the mailbox may have been deleted or your domain may be blocked — check your sender reputation and SPF/DKIM/DMARC records.

ความแตกต่างหลัก

1.

221 is a 2xx Positive Completion response, while 550 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 550: The requested action was not taken because the mailbox does not exist or the recipient address is rejected by policy. This is a permanent failure indicating the address is invalid or blocked.

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 550 when when sending to an email address that does not exist on the destination server, or when the server's policy rejects your message (e.g., anti-spam, sender verification failure).

ควรใช้อันไหนเมื่อไร

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 550 (Mailbox Not Found): Verify the recipient's email address for typos. If the address is correct, the mailbox may have been deleted or your domain may be blocked — check your sender reputation and SPF/DKIM/DMARC records.

เรียนรู้เพิ่มเติม