SMTP 251 User Not Local vs 421 Service Not Available
SMTP 251 (User Not Local) is a 2xx Positive Completion response, while 421 (Service Not Available) is a 4xx Transient Negative response. 251 indicates that the recipient is not local to the server, but it will forward the message to the specified forwarding address. The server acts as a relay for this recipient. In contrast, 421 means that the SMTP service is not available and the server is closing the transmission channel. This may be sent as a greeting or during a session if the server needs to shut down.
설명
The recipient is not local to the server, but it will forward the message to the specified forwarding address. The server acts as a relay for this recipient.
이 코드를 보게 되는 경우
When sending to a recipient whose mailbox is hosted on a different server. The current server knows the forwarding address and will relay the message on your behalf.
해결 방법
No fix needed — the message will be forwarded automatically. To avoid relaying, send directly to the address provided in the server's response.
설명
The SMTP service is not available and the server is closing the transmission channel. This may be sent as a greeting or during a session if the server needs to shut down.
이 코드를 보게 되는 경우
When connecting to a mail server that is overloaded, undergoing maintenance, or shutting down. The server cannot handle your request right now.
해결 방법
Retry the connection after a delay. If the issue persists, check server status and resources (CPU, memory, disk). Rate limiting or greylisting may also trigger this response.
주요 차이점
251 is a 2xx Positive Completion response, while 421 is a 4xx Transient Negative response.
SMTP 251: The recipient is not local to the server, but it will forward the message to the specified forwarding address. The server acts as a relay for this recipient.
SMTP 421: The SMTP service is not available and the server is closing the transmission channel. This may be sent as a greeting or during a session if the server needs to shut down.
You encounter 251 when when sending to a recipient whose mailbox is hosted on a different server. The current server knows the forwarding address and will relay the message on your behalf.
You encounter 421 when when connecting to a mail server that is overloaded, undergoing maintenance, or shutting down. The server cannot handle your request right now.
언제 어떤 것을 사용할지
For 251 (User Not Local): No fix needed — the message will be forwarded automatically. To avoid relaying, send directly to the address provided in the server's response. For 421 (Service Not Available): Retry the connection after a delay. If the issue persists, check server status and resources (CPU, memory, disk). Rate limiting or greylisting may also trigger this response.