SMTP

SMTP 503 Bad Sequence vs 504 Parameter Not Implemented

Both SMTP 503 (Bad Sequence) and 504 (Parameter Not Implemented) belong to the 5xx Permanent Negative category. 503 indicates that the commands were sent in the wrong order. SMTP requires a specific command sequence (EHLO, MAIL FROM, RCPT TO, DATA) and this error indicates a step was skipped or repeated. Meanwhile, 504 means that a command parameter is not implemented on this server. The command itself is valid but the specific parameter or extension you used is not supported.

Description

The commands were sent in the wrong order. SMTP requires a specific command sequence (EHLO, MAIL FROM, RCPT TO, DATA) and this error indicates a step was skipped or repeated.

When You See It

When sending DATA before RCPT TO, or MAIL FROM before EHLO. The server enforces the correct SMTP command sequence and you have sent a command out of order.

How to Fix

Follow the proper SMTP command sequence: EHLO/HELO first, then MAIL FROM, then RCPT TO (one or more), then DATA. Reset with RSET if you need to start over.

Description

A command parameter is not implemented on this server. The command itself is valid but the specific parameter or extension you used is not supported.

When You See It

When using SMTP extensions or parameters that the server does not support, such as an unsupported AUTH mechanism or an unrecognized MAIL FROM parameter.

How to Fix

Check the server's EHLO response for supported extensions and parameters. Use only the mechanisms and parameters listed in the server's capability advertisement.

Key Differences

1.

SMTP 503: The commands were sent in the wrong order. SMTP requires a specific command sequence (EHLO, MAIL FROM, RCPT TO, DATA) and this error indicates a step was skipped or repeated.

2.

SMTP 504: A command parameter is not implemented on this server. The command itself is valid but the specific parameter or extension you used is not supported.

3.

You encounter 503 when when sending DATA before RCPT TO, or MAIL FROM before EHLO. The server enforces the correct SMTP command sequence and you have sent a command out of order.

4.

You encounter 504 when when using SMTP extensions or parameters that the server does not support, such as an unsupported AUTH mechanism or an unrecognized MAIL FROM parameter.

When to Use Which

For 503 (Bad Sequence): Follow the proper SMTP command sequence: EHLO/HELO first, then MAIL FROM, then RCPT TO (one or more), then DATA. Reset with RSET if you need to start over. For 504 (Parameter Not Implemented): Check the server's EHLO response for supported extensions and parameters. Use only the mechanisms and parameters listed in the server's capability advertisement.

Learn More