System status, or system help reply
The 211 code provides a system status update or a help reply. It is returned by an SMTP server in response to a client's request for status or help information.
- 1The client sent a `HELP` command to the server.
- 2The client sent a `STAT` command to query the server's status.
- 3The server is configured to provide specific diagnostic information upon request.
A client sends a HELP command to get information about the commands the server supports.
HELP 211-Supported commands: 211-EHLO 211-MAIL 211-RCPT 211-DATA 211-QUIT 211-HELP
expected output
211 System status reply
Fix
Parse the multi-line system status response
WHEN When scripting against an SMTP server and you need server status
telnet mail.example.com 25 # Lines prefixed 211- are continuation lines # Final line starts with "211 " (space, not dash)
Why this works
The 211 response may span multiple lines (211- for continuations, 211 space for the final). Parse until the space-delimited line to capture the full reply.
✕ Rely on 211 for production delivery logic
HELP/STAT are informational only. Content and format vary widely between server implementations.
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev