SMTP Error 503: Bad Sequence of Commands
SMTP Error 503 means “Bad Sequence of Commands.” SMTP commands were sent in the wrong order. The SMTP protocol requires commands in a specific sequence: HELO/EHLO, then MAIL FROM, then RCPT TO, then DATA. Sending commands out of order triggers this error.
503 5.5.1 Error: need RCPT command
What does 503 mean?
SMTP code 503 indicates that your sending server issued commands in an incorrect order. The SMTP protocol requires a specific sequence: first EHLO/HELO to identify your server, then MAIL FROM to specify the sender, then one or more RCPT TO for recipients, and finally DATA to transmit the message content.
This error can also occur if a command is issued before the required authentication step. For example, attempting MAIL FROM before AUTH on a server that requires authentication will return 503. Similarly, sending DATA before any RCPT TO commands, or issuing MAIL FROM twice without completing the first transaction, will trigger this error.
How 503 plays out
503 rejectionWhere 503 sits: soft vs hard bounce
| Soft bounce (4xx) | Hard bounce (5xx) | |
|---|---|---|
| Nature | Temporary | Permanent |
| SMTP class | 4xx | 5xx |
| What to do | Let it retry | Suppress the address |
| Recoverable? | Often | No |
| 503 is | ✓ this code |
Common causes of 503
- Sending DATA before completing MAIL FROM and RCPT TO
- Issuing MAIL FROM before HELO/EHLO
- Attempting to send without required authentication (AUTH)
- Sending duplicate commands without completing the transaction
- Software bug in the sending MTA causing out-of-order commands
How to fix 503
- Review your MTA configuration to ensure proper SMTP command sequencing
- Ensure authentication (AUTH) is completed before MAIL FROM if required
- Check for bugs or misconfiguration in your sending software
- Test the SMTP conversation manually using telnet or openssl to identify the sequence issue