SMTP 235 Authentication Successful vs 421 Service Not Available
SMTP 235 (Authentication Successful) is a 2xx Positive Completion response, while 421 (Service Not Available) is a 4xx Transient Negative response. 235 indicates that the client has been successfully authenticated using the AUTH command. The server will now accept mail commands from this authenticated session. 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.
Mô tả
The client has been successfully authenticated using the AUTH command. The server will now accept mail commands from this authenticated session.
Khi bạn thấy mã này
After submitting valid credentials via the AUTH command (LOGIN, PLAIN, or other SASL mechanism). The server has verified your identity and you can now send mail.
Cách khắc phục
No fix needed — authentication succeeded. If you expected this but received a different code, double-check your username, password, and the authentication mechanism.
Mô tả
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.
Khi bạn thấy mã này
When connecting to a mail server that is overloaded, undergoing maintenance, or shutting down. The server cannot handle your request right now.
Cách khắc phục
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.
Sự khác biệt chính
235 is a 2xx Positive Completion response, while 421 is a 4xx Transient Negative response.
SMTP 235: The client has been successfully authenticated using the AUTH command. The server will now accept mail commands from this authenticated session.
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 235 when after submitting valid credentials via the AUTH command (LOGIN, PLAIN, or other SASL mechanism). The server has verified your identity and you can now send mail.
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.
Khi nào dùng cái nào
For 235 (Authentication Successful): No fix needed — authentication succeeded. If you expected this but received a different code, double-check your username, password, and the authentication mechanism. 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.