RFC 2034
4. The Enhanced-Status-Codes service extension
Servers supporting the Enhanced-Status-Codes extension must preface
the text part of almost all response lines with a status code. As in
RFC 1893, the syntax of these status codes is given by the ABNF:
status-code ::= class "." subject "." detail
class ::= "2" / "4" / "5"
subject ::= 1*3digit
detail ::= 1*3digit
These codes must appear in all 2xx, 4xx, and 5xx response lines other
than initial greeting and any response to HELO or EHLO. Note that 3xx
responses are NOT included in this list.
221 2.0.0 Goodbye
RFC 5321
4.1.1.9. NOOP (NOOP)
This command does not affect any parameters or previously entered
commands. It specifies no action other than that the receiver send a
"250 OK" reply.
4.1.1.10. QUIT (QUIT)
This command specifies that the receiver MUST send a "221 OK" reply,
and then close the transmission channel.
I’m running an SMTP server supporting RFC 2034, but it seems RFC 2034 and RFC 5321 conflict and I don’t know what I should do for my server.
RFC 5321 says the server MUST
reply with “250 OK
” for the QUIT
command, but per RFC 2034, it also must
preface the text part of almost all response lines with a status code.
Should I give the extension priority (“250 2.0.0 OK
”)? Wouldn’t it violate RFC 5321?