What SMTP 501 means
RFC 5321 defines 501 as 'Syntax error in parameters or arguments'. The command itself was valid, but what came after it wasn't.
For senders, the usual culprit is an email address. An address with spaces, a trailing dot, two @ signs, smart quotes copied from a spreadsheet, or missing angle brackets in RCPT TO all produce 501 errors, often with enhanced code 5.1.3 ('Bad destination mailbox address syntax') or 5.1.7 for the sender. A malformed HELO name can trigger it too.
What to do about a 501
- If the error mentions the recipient, look at the exact address in your list. Clean it up or remove it; an address that can't be parsed was never deliverable.
- If it mentions the sender or HELO, fix the From address or the hostname your server announces.
- Validate addresses on import so malformed ones never reach a sequence.
Reading the rest of the bounce
A bounce usually carries three things: the basic code (501), 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.