如何隱藏 IIS SMTP 版本號?

如何隱藏 IIS SMTP 版本號?

如果我鍵入以下命令並連接到我的生產伺服器 (Windows 2008):

telnet myserver 25

我看到以下結果:

220 myserver Microsoft ESMTP 郵件服務,版本:7.0.xxx 就緒,日期:2014 年 3 月 7 日星期五,09:55 +0100

我想在此回覆中隱藏版本號。我有什麼辦法可以做到這一點嗎?

答案1

轉到cmd.exe然後運行

cd c:\Inetpub\Adminscripts
cscript adsutil.vbs set smtpscv/ vsi number /connectresponse “New banner here”

答案2

一段時間後我找到了答案,決定幫助其他有相同問題的人。

如果您開啟 MetaBase.xml ,請前往

  1. <IIsSmtpServer Location ="/LM/SmtpSvc/1"
  2. 添加ConnectResponse="String of Your Own Choice here"到上面的步驟。
  3. EnableEditWhileRunning如果未啟用,請重新啟動伺服器

該版本現在已隱藏。

相關內容