SMTP

SMTP 220 Service Ready vs 551 User Not Local

SMTP 220 (Service Ready) is a 2xx Positive Completion response, while 551 (User Not Local) is a 5xx Permanent Negative response. 220 indicates that the SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati In contrast, 551 means that the recipient is not local to this server and the server does not accept mail for forwarding. Unlike 251, this is a rejection — the server will not relay the message.

설명

The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identification.

이 코드를 보게 되는 경우

Immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.

해결 방법

No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection.

설명

The recipient is not local to this server and the server does not accept mail for forwarding. Unlike 251, this is a rejection — the server will not relay the message.

이 코드를 보게 되는 경우

When sending to a recipient that has moved or whose mailbox is hosted elsewhere, and this server refuses to forward the message to the new location.

해결 방법

Check the server's response for a forwarding address and resend directly to that address. Update your contact records if the recipient has permanently moved to a new mail server.

주요 차이점

1.

220 is a 2xx Positive Completion response, while 551 is a 5xx Permanent Negative response.

2.

SMTP 220: The SMTP server is ready to begin the mail transaction. This greeting is the first response a client receives upon connecting, and it typically includes the server's hostname and software identificati

3.

SMTP 551: The recipient is not local to this server and the server does not accept mail for forwarding. Unlike 251, this is a rejection — the server will not relay the message.

4.

You encounter 220 when immediately after establishing a TCP connection to the mail server on port 25, 465, or 587. This is the server's welcome banner confirming it is ready to accept commands.

5.

You encounter 551 when when sending to a recipient that has moved or whose mailbox is hosted elsewhere, and this server refuses to forward the message to the new location.

언제 어떤 것을 사용할지

For 220 (Service Ready): No fix needed — this confirms a successful connection. If you do not receive this greeting, check that the server is running, the port is correct, and no firewall is blocking the connection. For 551 (User Not Local): Check the server's response for a forwarding address and resend directly to that address. Update your contact records if the recipient has permanently moved to a new mail server.

더 알아보기