# 5.5.2 Bounce: Syntax Error, Command Not Recognized

URL: https://email-validation.org/bounce-codes/5-5-2/
Updated: 2026-11-25

> Documentation index: https://email-validation.org/llms.txt

**Short answer:** The receiving server could not read a command your server or app sent: the syntax was wrong or the command was unknown. It is permanent, so sending the same command again fails the same way and the message is not retried. Find the command in your log and fix the software that wrote it.

**At a glance**

- **Type:** permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
- **Basic code:** varies. The IANA registry lists it with 500, 501, 502, 550 and 555.
- **Enhanced code 5.5.2:** “Syntax error” in the IANA registry (RFC 3463), in the group mail delivery protocol status (RFC 3463 §3.6).

Your message was refused because of how it was sent, not because of who it was sent to. Somewhere in the conversation between the two mail systems, one command was malformed or unknown.

## What it means
[RFC 3463 §3.6](https://www.rfc-editor.org/info/rfc3463/) defines X.5.2 as "syntax error". A command was issued that could not be interpreted, either because its syntax was wrong or because the command was not recognized. The RFC says the code is useful only as a permanent error. The [IANA registry](https://www.iana.org/assignments/smtp-enhanced-status-codes/) lists 500, 501, 502, 550 and 555 as the basic replies used with it.

Some standards name 5.5.2 for specific cases:
- [RFC 4954](https://www.rfc-editor.org/info/rfc4954/): during sign-in (AUTH), a response the server cannot decode as base64 is refused with 501 and 5.5.2.
- [RFC 6710](https://www.rfc-editor.org/info/rfc6710/): an invalid or repeated priority parameter on `MAIL FROM` is refused with 501 and 5.5.2.

The code is close to two others. [501 5.5.4](https://email-validation.org/bounce-codes/501-5-5-4/) means the command was known but its arguments were wrong. [503 5.5.1](https://email-validation.org/bounce-codes/503-5-5-1/) means the command came at the wrong time.

## Common causes
- An app or script that builds SMTP commands by hand and gets the format wrong.
- An address in `MAIL FROM` or `RCPT TO` written in a form the server does not accept, for example without angle brackets.
- A command or extension the server does not support.
- Sign-in data that is not valid base64.

## How to fix it
If you are the sender:
1. Turn on the SMTP log in your app or server and find the command just before the error.
2. Compare it with what the standard expects. Check spacing, angle brackets and line endings.
3. Use a maintained mail library instead of writing SMTP commands yourself.
4. If the error appears during sign-in, check how your app encodes credentials.

If you run the receiving server:
1. Log the name of the rejected command so senders can be told what was wrong. Redact the data sent with AUTH, since it carries credentials.
2. Check that a recent change did not make the server stricter than intended.

## What to do with the address
Keep it. A 5.5.2 is about the sending software, not about the recipient address. Fix the command, then send the message again.

## Related codes

- [501 5.5.4](https://email-validation.org/bounce-codes/501-5-5-4/): Invalid HELO/EHLO or command arguments
- [503 5.5.1](https://email-validation.org/bounce-codes/503-5-5-1/): Commands sent in the wrong order
- [500 5.5.6](https://email-validation.org/bounce-codes/500-5-5-6/): The sign-in data sent to the server was too long

See [every bounce code](https://email-validation.org/bounce-codes/) in the dictionary.

The address on your list is not what failed here. For the bounces your list does cause, [clean the list before you send](https://email-validation.org/bulk-email-verification/).

_How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text._
