QUIT command
The SMTP command that ends a session: the server replies 221 and closes the connection.
What it means
A client sends QUIT when it has nothing more to send, and the server must answer 221 and close. RFC 5321 does not let a server close a connection on its own in normal operation except after QUIT, after a 421 reply, or after a timeout, and says a server being shut down should send 421 before it goes.
When a connection is lost without either, the client should treat the open transaction as if it had received a 451 temporary failure and try again later. Messages already accepted with 250 before the connection ended remain the receiving server's responsibility, so a dropped connection loses nothing that was accepted.
Related terms
Sources
What this definition rests on. The wording is ours; the facts are theirs.
- RFC 5321, section 4.1.1.10: QUIT (QUIT)rfc-editor.org
- RFC 5321, section 3.8: Terminating Sessions and Connectionsrfc-editor.org
All 432 terms in the glossaryThe wiki: blocklists and bounce codes