SMTP

SMTP 334 Server Challenge vs 535 Authentication Failed

SMTP 334 (Server Challenge) is a 3xx Positive Intermediate response, while 535 (Authentication Failed) is a 5xx Permanent Negative response. 334 indicates that the server is issuing an authentication challenge as part of the SASL authentication exchange. The response contains a Base64-encoded challenge that the client must decode and respond to. In contrast, 535 means that the authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.

説明

The server is issuing an authentication challenge as part of the SASL authentication exchange. The response contains a Base64-encoded challenge that the client must decode and respond to.

このコードが表示される場合

During the AUTH command handshake. The server is prompting you for your username or password (Base64-encoded) as part of the multi-step authentication process.

解決方法

Respond with the appropriate Base64-encoded credentials. If authentication keeps failing after responding, verify your credentials and ensure you are using the correct SASL mechanism.

説明

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.).

主な違い

1.

334 is a 3xx Positive Intermediate response, while 535 is a 5xx Permanent Negative response.

2.

SMTP 334: The server is issuing an authentication challenge as part of the SASL authentication exchange. The response contains a Base64-encoded challenge that the client must decode and respond to.

3.

SMTP 535: The authentication credentials provided are invalid. The username, password, or authentication mechanism was rejected by the server.

4.

You encounter 334 when during the AUTH command handshake. The server is prompting you for your username or password (Base64-encoded) as part of the multi-step authentication process.

5.

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 334 (Server Challenge): Respond with the appropriate Base64-encoded credentials. If authentication keeps failing after responding, verify your credentials and ensure you are using the correct SASL mechanism. 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.).

詳しく見る