SMTP 220 Service Ready vs 535 Authentication Failed
SMTP 220 (Service Ready) is a 2xx Positive Completion response, while 535 (Authentication Failed) 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, 535 means that the authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
描述
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 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.).
主要区别
220 is a 2xx Positive Completion response, while 535 is a 5xx Permanent Negative response.
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
SMTP 535: The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.
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.
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 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 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.).