What SMTP 500 means
RFC 5321 defines 500 as 'Syntax error, command unrecognized', noting that this may include errors such as a command line that's too long. The server couldn't parse what your client sent.
You rarely see 500 from a mainstream sending tool. It shows up with homemade scripts, old libraries, or when something between you and the server (a proxy, an antivirus scanner, a firewall doing SMTP inspection) mangles the conversation.
What to do about a 500
- Check the SMTP log to see which command the server rejected.
- Make sure you're connecting to an SMTP port (587 or 465 for sending through a provider) and that the TLS mode matches the port. Speaking plain SMTP to a TLS port, or the reverse, produces garbled commands.
- Update the email library or tool, and test without any proxy or security software in the path. Don't suppress the recipient: the message never reached the point where the address mattered.
Reading the rest of the bounce
A bounce usually carries three things: the basic code (500), 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.