Skip to content
Standard SMTP codes · permanent error

503: bad sequence of commands

The client sent a command at the wrong point in the conversation, for example message data before any recipient was accepted, or mail before logging in.

Standard
Provider
Permanent (5xx)
Class
Sources checked
Author

At a glance

Code
503
Temporary or permanent
PermanentRefused for good: the message comes back to the sender, and resending it gets the same answer.
Who has to act
The sender. The fix is on the sending side: your domain, your server or your list.
What the server says
503 Bad sequence of commands

What it means

SMTP has a fixed order: greeting, EHLO, optional STARTTLS and AUTH, MAIL FROM, one or more RCPT TO, then DATA. A 503 says a command arrived out of turn. A common case is DATA after every recipient was refused, and RFC 5321 also tells a server that refused the session at connection time to answer any later command with 503. Some servers send 503 when a client tries to send mail before authenticating. It is permanent for that command; the enhanced code (5.5.1, or 5.7.0 when login is missing) narrows it down.

Common causes

  • DATA sent after all recipients were refused.
  • MAIL FROM sent before EHLO or HELO.
  • An attempt to send before logging in, on a server that requires authentication.

How to fix it

  1. 01Look at the earlier replies in the session: a refused RCPT TO usually comes just before the 503.
  2. 02If the server requires it, make sure your client authenticates before sending.
  3. 03Fix or update sending software that issues commands out of order.

Sources

What this page rests on, checked on 20 Oct 2026. The explanation is ours; the reply text is the server's.

  1. 5.5.1Invalid SMTP command.The sending software issued an SMTP command that the server does not support, or sent it at the wrong point in the conversation.StandardPermanent
  2. 530Authentication required.The server requires the client to log in, or to start TLS, before it accepts this command, which usually means before it accepts any mail.StandardPermanent
  3. 554Transaction failed.The server permanently refused the transaction, often after receiving the message data or straight away when the connection opened.StandardPermanent
  4. 5.5.0SMTP protocol problem, unspecified.Something went wrong in the SMTP conversation between the servers that the receiving side did not describe with a more specific protocol code.StandardPermanent

All 105 standard codesEvery code in the wikiPaste your own bounce

Beat · paid monitoring

A heartbeat for your email.

Beat runs every check on this site on a schedule: 41 checks, 33 blacklists and real inbox placement. The moment something breaks, it tells you what broke, why it matters, and the exact fix.

example.comWatching
  • SPFpass
  • DKIMpass
  • DMARCp=none
  • Blacklists0 of 33

Illustrative. Your domain, every few hours.

Also from us:Pulse: your own sending infrastructureConsulting: $65/hr, no retainer