Opens in a new tab

SMTP 5.5.1: invalid command — what it means

5.5.1 means a command came out of order or is not supported — a client or script that does not follow the SMTP conversation.

Code5.5.1
MeaningInvalid command
KindPermanent failure — the sender gives up
Sent in reply toWith 500, 502 or 503
What the sender doesDepends on the command; the message usually does not go
Defined inRFC 3463

Paste your bounce

Paste the line with the code — or the whole bounce: we explain each code in it, say whether the sender will try again, and link the service’s own page where it has one. It is read in your browser; nothing is sent.

What to do

  • Check the client or script: it sends commands in the wrong order, or ones the server does not support.

What each provider means by it

WhoWhat they say
Gmail503 5.5.1 Bad sequence of commands, EHLO/HELO first, RCPT first, No DATA after BDAT; 502 5.5.1 Unimplemented or unrecognized command.
Exchange ServerReports “send hello first” as 5.5.2.

Related: 503, 502, 5.5.2.

Sources

Checked on 27 September 2026 against these official sources:

See every bounce before your customers do

Add your domain and send us a test message: we show what a receiving server saw — authentication, reverse DNS, blocklists, TLS — and monitor the servers you send from for blocklistings every day. Free for your first domain.

Create a free account