At a glance
- Type: permanent reply (class 5, RFC 3463 §2) to a command your mail app or client sent, such as its sign-in, not to a message. Nothing is queued and nothing bounces. The same command fails the same way until the cause is fixed.
- Basic code 500: “Syntax error, command unrecognized (This may include errors such as command line too long)” (RFC 5321 §4.2.3).
- Enhanced code 5.5.6: “Authentication exchange line is too long” in the IANA registry (RFC 4954), in the group mail delivery protocol status (RFC 3463 §3.6).
Your app tried to sign in to a mail server, and the server refused because one line of the sign-in data was too long. No message was sent, and nothing is wrong with your recipients.
What it means
RFC 4954 defines the AUTH command and this reply: 500 5.5.6, "Authentication Exchange line is too long". It means the client sent a base64 response longer than the largest buffer the server has for the sign-in method in use. The server then fails the AUTH command.
The RFC says clients and servers must handle the largest responses their sign-in methods produce. That rule is separate from the normal line limits of SMTP. When the RFC was written, 12288 octets was considered enough for the methods in use.
There is a second rule. The AUTH command line itself still follows the normal SMTP line limit. If adding the first response to the command would make it too long, the client must leave it out and send it on its own line after the server's prompt.
The IANA registry says X.5.6 can be used for both permanent and persistent transient errors. With the 500 reply it is a permanent failure of the sign-in.
Common causes
- A sign-in method that sends a long token, longer than the server's buffer.
- A client that puts a long first response on the AUTH command line itself instead of sending it after the prompt.
- Credentials or a token joined with extra data by mistake, making the line much longer than intended.
- A server built with a small sign-in buffer.
How to fix it
If you are the sender:
- Check the length of what your app sends after AUTH. A token far longer than usual points to a bug in how it is built.
- If your app puts the response on the AUTH line, configure it to send the response after the server's prompt.
- Try another sign-in method the server offers, if your account allows it.
- After the sign-in works, see 535 5.7.8 if the server then refuses the credentials.
If you run the server:
- Check the buffer size for each sign-in method you offer, and raise it to fit the responses that method produces.
What to do with the address
Nothing. A 500 5.5.6 is about how your app signs in, not about any recipient address. Fix the sign-in, then send again.