221 is the server’s goodbye: it answers QUIT and closes the connection. It says nothing about whether mail was delivered — that was decided by the 250 after each message.
| Code | 221 |
| Meaning | Service closing transmission channel |
| Kind | Success |
| Sent in reply to | QUIT |
| What the sender does | Nothing — the session is over |
| Defined in | RFC 5321, sections 4.1.1.10 and 4.2 |
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.
Worth knowing
Neither side should close the connection before QUIT and 221; a connection that drops early leaves an unfinished message undelivered.
Sources
Checked on 27 September 2026 against these official sources:
- RFC 5321: Simple Mail Transfer Protocol — rfc-editor.org
- RFC 2034: SMTP Service Extension for Returning Enhanced Error Codes — rfc-editor.org