SMTP 235 Authentication Successful vs 500 Syntax Error
SMTP 235 (Authentication Successful) is a 2xx Positive Completion response, while 500 (Syntax Error) is a 5xx Permanent 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, 500 means that the server could not recognize the command due to a syntax error. The command line was malformed or the command is not recognized by this server.
설명
The client has been successfully authenticated using the AUTH command. The server will now accept mail commands from this authenticated session.
이 코드를 보게 되는 경우
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.
해결 방법
No fix needed — authentication succeeded. If you expected this but received a different code, double-check your username, password, and the authentication mechanism.
설명
The server could not recognize the command due to a syntax error. The command line was malformed or the command is not recognized by this server.
이 코드를 보게 되는 경우
When you send a command the server does not understand — often due to a typo, unsupported command, or an excessively long line.
해결 방법
Check the command spelling and syntax against the SMTP specification. Ensure the command line does not exceed 512 characters and uses proper CRLF line endings.
주요 차이점
235 is a 2xx Positive Completion response, while 500 is a 5xx Permanent 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 500: The server could not recognize the command due to a syntax error. The command line was malformed or the command is not recognized by this server.
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 500 when when you send a command the server does not understand — often due to a typo, unsupported command, or an excessively long line.
언제 어떤 것을 사용할지
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 500 (Syntax Error): Check the command spelling and syntax against the SMTP specification. Ensure the command line does not exceed 512 characters and uses proper CRLF line endings.