Opens in a new tab

SMTP 503: bad sequence of commands — what it means

503 means a valid command came at the wrong time: MAIL before EHLO, RCPT before MAIL, DATA with no accepted recipient. A 503 to DATA usually follows earlier refusals — look at the replies before it for the real reason.

Code503
MeaningBad sequence of commands
KindPermanent failure — the sender gives up
Sent in reply toMAIL, RCPT, DATA, AUTH
What the sender doesDepends on the earlier replies; the message does not go in this session
Defined inRFC 5321, sections 3.1, 4.1.4 and 4.2

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 causes it

  • Every recipient was refused, so there is nothing to send when DATA arrives.
  • A client that skips EHLO, or authenticates twice.
  • A server that greeted with 554 answers every command but QUIT with 503.

What to do

  • Look at the replies before the 503: the refusal that caused it is there.
  • Fix the client’s command order.

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”; 503 5.7.0 “No identity changes permitted”.
Exchange ServerReports “send hello first” as 5.5.2.
EximRefuses MAIL before EHLO or HELO with 503, for hosts it verifies.

Related: 554, 5.5.1, 550.

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