Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET
Exchange Server

Change the SMTP Banner

How can I change the SMTP banner seen when connecting to my Exchange server via Telnet?

MS KB articles 281224 and 836564 have more:

When you use Telnet to connect to the Simple Mail Transfer Protocol (SMTP) service of a Windows 2000/2003-based server (regardless of whether it is running Exchange 2000/2003), the following banner is displayed:

Sponsored Content

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

​220 Microsoft ESMTP MAIL Service, Version: 5.0.2195.1600 ready at Thu, 30 Nov 2000 18:09:43 -0600

Note: The SMTP banner has another function. Read Remote Version Checking through SMTP/POP3/IMAP4.

Note: You may also want to Change the IMAP4 Banner, Change the POP3 Banner or Change the Telnet Banner.

Method #1

To change the response that appears when you connect to an SMTP virtual server, follow these steps:

  1. Click Start, and then click Run.
  2. In the Open box, type CMD, and then click OK.
  3. Change to the Adminscripts directory.

The Adminscripts directory is located in the following location:


  1. Type the following line, and then press Enter:
​cscript adsutil.vbs set smtpsvc/vsi number/connectresponse "Your Text"

In this line, vsinumber is the number of the SMTP virtual server (usually 1, in some cases it could be higher, see your ESM for more details), and Your Text is the text that you want to appear instead of the default response.

  1. To complete this procedure, stop and then restart the SMTP service. You can do so from the Services snap-in or by using the net stop / net start commands.
  2. Close the CMD window.

Method #2

Warning: If you use the ADSI Edit snap-in, the LDP utility, or any other LDAP version 3 client, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. These problems may require you to reinstall Microsoft Windows 2000/2003 Server, Microsoft Exchange 2000/2003 Server, or both. Microsoft cannot guarantee that problems that occur if you incorrectly modify Active Directory object attributes can be solved. Modify these attributes at your own risk.

This may be an issue if you do not want the version of the SMTP service that is running on your server to be displayed. To remove the version information from the Windows 2000/2003 SMTP banner, follow these steps:

  1. Using a metabase editing tool such as MetaEdit or Metabase Explorer, locate the following file:
​Lm\Smtpsvc\virtual server number
  1. Click Edit, click New, and then click String.

  1. Verify that the entry in the ID box is Other, and then type 36907 (decimal) on the right side of the ID box.

  1. In the Data box, type the banner that you want to be displayed.

  1. Stop, and then restart the SMTP virtual server or the SMTP service.
  2. To confirm that the banner has been changed, telnet to port 25 of the virtual server (the default setting). The “ESMTP MAIL Service, Version: 5.0.2195.1600” banner should no longer be displayed.

Note: The fully qualified domain dame (FQDN) (as it was entered in the SMTP service properties) and the date and time are still displayed. The following text is an example of modified banner:

Related articles

You might also want to read the following related articles:


How to Modify the SMTP Banner – 281224

How to change the default connection response that you receive after you connect to the SMTP port in Exchange 2003 – 836564

How to Modify the POP or IMAP Banner – 303513

MetaEdit 2.2 is available for download by clicking the following Microsoft link:

MetaEdit 2.2 (2.52mb)

Metabase Explorer 1.6 is a part of the IIS 6.0 Resource Kit which can be downloaded here:

IIS 6.0 Resource Kit Tools (6mb)

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (1)

One response to “Change the SMTP Banner”

Leave a Reply

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: