502 means the server recognises the command but does not support it — EHLO at a very old server, or VRFY and EXPN, which many servers switch off. It is not a delivery failure by itself: the client uses another command.
| Code | 502 |
| Meaning | Command not implemented |
| Kind | Permanent failure — the sender gives up |
| Sent in reply to | EHLO, VRFY, EXPN, HELP |
| What the sender does | Uses another command — HELO instead of EHLO |
| Defined in | RFC 5321, section 4.2.4 |
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 to do
- Nothing, usually: the client adapts. A tool that checks addresses with VRFY cannot rely on it.
What each provider means by it
| Who | What they say |
|---|---|
| Gmail | 502 5.5.1 for unimplemented and unrecognised commands — and “Too many unrecognized commands, goodbye”. |
Worth knowing
VRFY and EXPN are often turned off to stop address harvesting.
Sources
Checked on 27 September 2026 against these official sources:
- RFC 5321: Simple Mail Transfer Protocol — rfc-editor.org
- Simple Mail Transfer Protocol (SMTP) Enhanced Status Codes Registry — iana.org
- Gmail SMTP errors and codes — knowledge.workspace.google.com