SMTP

SMTP 250 OK vs 551 User Not Local

SMTP 250 (OK) is a 2xx Positive Completion response, while 551 (User Not Local) is a 5xx Permanent Negative response. 250 indicates that the requested mail action has been completed successfully. This is the most common positive response in SMTP, returned after HELO/EHLO, MAIL FROM, RCPT TO, and DATA completion. 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 requested mail action has been completed successfully. This is the most common positive response in SMTP, returned after HELO/EHLO, MAIL FROM, RCPT TO, and DATA completion.

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

After nearly every successful SMTP command — greeting, specifying sender, adding recipients, or completing message delivery. This is the standard success confirmation.

วิธีแก้ไข

No fix needed — the command was accepted. If a command that should succeed returns a different code, check the command syntax and server policies.

คำอธิบาย

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.

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

2.

SMTP 250: The requested mail action has been completed successfully. This is the most common positive response in SMTP, returned after HELO/EHLO, MAIL FROM, RCPT TO, and DATA completion.

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 250 when after nearly every successful SMTP command — greeting, specifying sender, adding recipients, or completing message delivery. This is the standard success confirmation.

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 250 (OK): No fix needed — the command was accepted. If a command that should succeed returns a different code, check the command syntax and server policies. 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.

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