remove "HELP" command from SMTP command (Windows server)

Milad Khoshdel 1 Reputation point
2021-09-25T12:22:21.457+00:00

Dears

As below :

220 XXX.XXX Ready

HELP

214-This server supports the following commands:

214 HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH BDAT

I need to to remove "HELP" command from SMTP command (Exchange Windows Server) because of security reasons. would you please tell me how can i do it ?

Thank You

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,702 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andy David - MVP 150.3K Reputation points MVP
    2021-09-25T12:49:23.45+00:00

    There isnt really a way to remove just that command on the receive connector as far as I know.

    You have a few options you can test out - but these options will disable all the ESMTP verbs

    For the receive connector:

    https://learn.microsoft.com/en-us/powershell/module/exchange/set-receiveconnector?view=exchange-ps

    EnhancedStatusCodesEnabled

    Set this to false
    -EnhancedStatusCodesEnabled
    The EnhancedStatusCodesEnabled parameter specifies whether the ENHANCEDSTATUSCODES Extended SMTP extension is enabled or disabled on the Receive connector. Valid values are:

    $true: ENHANCEDSTATUSCODES is enabled and is advertised in the EHLO response. This is the default value.
    $false: ENHANCEDSTATUSCODES is disabled and isn't advertised in the EHLO response.

    For the Send Connector:

    -ForceHELO
    The ForceHELO parameter specifies whether HELO is sent instead of the default EHLO. Valid values are $true or $false. The default value is $false.

    https://learn.microsoft.com/en-us/powershell/module/exchange/set-sendconnector?view=exchange-ps

    0 comments No comments

  2. Milad Khoshdel 1 Reputation point
    2021-09-25T14:07:18.217+00:00

    Thank you. I found this solution for Linux Servers:

    To disable the SMTP HELP command, clear the Sendmail help file.

    echo > /etc/mail/helpfile

    But I'm Looking for a solution to disable it on windows Server. Isn't there any solution to only disable help command?

    0 comments No comments

  3. Andy David - MVP 150.3K Reputation points MVP
    2021-09-25T15:19:32.19+00:00

    If you are running "Exchange Windows Server" as you stated above, there is no "SMTP service" per se. Its handled by the Exchange Transport Service.
    I know of no way to just disable that command within Exchange.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.