SMTP 421 Service Not Available vs 535 Authentication Failed
SMTP 421 (Service Not Available) is a 4xx Transient Negative response, while 535 (Authentication Failed) is a 5xx Permanent Negative response. 421 indicates 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. In contrast, 535 means that the authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
설명
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.
설명
The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
이 코드를 보게 되는 경우
After submitting incorrect credentials via the AUTH command. The username or password does not match any account on the server.
해결 방법
Double-check your username and password. If using an app password (e.g., Gmail, Outlook), ensure it is current and has not been revoked. Also verify the correct SASL mechanism (PLAIN, LOGIN, etc.).
주요 차이점
421 is a 4xx Transient Negative response, while 535 is a 5xx Permanent Negative response.
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.
SMTP 535: The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
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.
You encounter 535 when after submitting incorrect credentials via the AUTH command. The username or password does not match any account on the server.
언제 어떤 것을 사용할지
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. For 535 (Authentication Failed): Double-check your username and password. If using an app password (e.g., Gmail, Outlook), ensure it is current and has not been revoked. Also verify the correct SASL mechanism (PLAIN, LOGIN, etc.).