clement

SMTP 502: Command not implemented

502 means the server recognized the command but doesn't support it, such as AUTH on a server that doesn't offer authentication.

Type
Permanent failure (hard bounce)
Reply text in the RFC
502 Command not implemented

What SMTP 502 means

RFC 5321 defines 502 as 'Command not implemented'. The server knows the command but doesn't offer it on this connection.

For senders this usually means the client and server disagree about features: trying to log in (AUTH) on a port or server that doesn't accept authentication, or asking for STARTTLS where it isn't offered. Connecting to a provider's incoming MX server instead of its submission server is a classic cause.

What to do about a 502

  • Use the provider's submission host and port (for example smtp.gmail.com or smtp.office365.com on 587 with STARTTLS, or 465 with implicit TLS), not the MX host on port 25.
  • Check the server's EHLO response in the log: it lists the commands and extensions the server supports. If AUTH or STARTTLS isn't in that list, the client can't use it on this connection.
  • Don't suppress the recipient. It's a configuration problem, and nothing was sent.

Reading the rest of the bounce

A bounce usually carries three things: the basic code (502), an enhanced status code such as 5.7.1 (class, subject and detail), and a line of text from the server. The enhanced code and the text are more specific than the basic code, so always read them before deciding whether to suppress a contact. Paste the full bounce into the SMTP error code lookup to decode all three at once.

FAQ

What does SMTP 502 mean?

502 is "Command not implemented". 502 means the server recognized the command but doesn't support it, such as AUTH on a server that doesn't offer authentication.

Is 502 a hard bounce or a soft bounce?

502 is a permanent failure (a hard bounce): sending the same message again won't work. Whether to remove the contact depends on the enhanced code after it; only address errors (5.1.x) mean the recipient is bad.

Other permanent SMTP reply codes

Sources

Try Clement free for 14 days

Clement reads the bounces that land in your Gmail and SMTP inboxes and tells dead addresses apart from policy blocks: it suppresses the first across every campaign and keeps the contact on the second, so you don't have to decode bounces by hand.

Start free trial