SMTP Error 502: Command Not Implemented
SMTP Error 502 means “Command Not Implemented.” The receiving server does not support the SMTP command your server tried to use. This typically occurs when your server attempts to use an SMTP extension like STARTTLS or AUTH that the receiving server has not implemented.
502 5.5.1 VRFY command is disabled
What does 502 mean?
SMTP code 502 means the receiving server recognizes the command format but has not implemented that particular command. This is different from 500 (unrecognized command) because the server understands what you are asking for but does not support it.
The most common scenario is attempting STARTTLS with a server that does not support TLS encryption, or using AUTH with a server that does not support SMTP authentication. Some older or minimal mail servers may also return 502 for extended SMTP commands (ESMTP) that they have not implemented.
How 502 plays out
502 rejectionWhere 502 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 |
| 502 is | ✓ this code |
Common causes of 502
- Attempting STARTTLS with a server that does not support TLS
- Using AUTH command with a server that does not support authentication
- Sending ESMTP commands to a server that only supports basic SMTP
- Server has deliberately disabled certain commands for security
How to fix 502
- Check the server EHLO response to see which extensions are supported
- Fall back to basic SMTP commands if extended commands are not supported
- If STARTTLS is not supported, consider whether to send without encryption (use opportunistic TLS)
- Update your MTA configuration to handle servers with limited capabilities