XIMS: How to Get a List of Current SMTP Connections by Using a Command Prompt


Summary


This article describes how to use a command line to get a list of current Simple Mail Transfer Protocol (SMTP) connections to and from a server.

More Information


To get a list of SMTP connections to and from a server, use either of the following methods:
  • On the server, start a command prompt, and then type the following command:
    netstat |find "smtp"
    where the string above includes the pipe character (|) before the find command-line option.

    -or-
  • Create a batch file to simplify this procedure. To do this, create a new batch file, copy the following text into the file, and then save it to a folder that can be found in your path statement:
    @netstat |find "smtp"
    where the string above includes the at symbol (@) at the beginning of the string and the pipe character (|) before the find command-line option.