SMTP規範中NOOP的用途是什麼?什麼是SMTP'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.
This command has no effect on the reverse-path buffer, the forward-
path buffer, or the mail data buffer, and it may be issued at any
time. If a parameter string is specified, servers SHOULD ignore it.
Syntax:
noop = "NOOP" [ SP String ] CRLF
有趣。我認爲大多數SMTP服務器(不僅僅是Microsoft)都是這種情況,作爲針對某人希望通過NOOP保持連接數日甚至數天的DoS的安全措施。 – conradkdotcom
我不認爲它是由於安全問題。其他服務器不會出現此問題。 RFC不指定如何處理DOS,只是消息協議。安全性將通過其他參數處理,如連接超時,發送限制等。解決方法是使用RSET命令而不是NOOP。 – hs76
連接超時是什麼意思?無論當前事務的狀態如何,服務器在'x'秒後關閉連接?這可能是有道理的。爲避免在某些事情中關閉連接,必須要有相對高的價值,不是嗎? – conradkdotcom