Exchange Server TechCenter > Exchange Server Forums > Monitoring > SMTP Sessions - Exchange 2007
Ask a questionAsk a question
 

Proposed AnswerSMTP Sessions - Exchange 2007

  • Saturday, December 22, 2007 9:30 PMCarlosH1975 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Hi all:

     

    Someone can help me with the way to view the current SMTP sessions in a Exchange 2007 server??

     

    Thanks in advance.

     

    Carlos H.

All Replies

  • Sunday, December 23, 2007 11:57 AMLasse Pettersson -MVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Performance Monitor is usefull, check out the "MSExchangeTransport SmtpReceive" and "MSExchangeTransport SmtpSend" performance object.

     

  • Monday, December 24, 2007 6:45 AMCarlosH1975 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks for your reply. I been using these counters but I need to know the IP's from the current SMTP sessions like in Exchange 2003 - Protocols - SMTP - Current Sessions, is there something like that in Exchange 2007??

  • Tuesday, December 25, 2007 6:53 AMJeff SchertzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If you want to see the IP address of any current SMTP connections, simply use the netstat command and look for connections on port 25 (which will typically be displayed as smtp.

     

     

    Code Block

    C:\>netstat

     

    Active Connections

      Proto  Local Address          Foreign Address      State

      ...    ...                    ...                  ...

      TCP    EXCHANGESERVER:smtp    192.168.1.101:55958  ESTABLISHED

     

     

     

     

  • Wednesday, December 26, 2007 7:53 PMLasse Pettersson -MVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    You can also use the protocol logging and read the textfiles. This is not giving you realtime info though, only old info.

     

  • Friday, January 25, 2008 4:01 AMMike Crowley Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    To add to Jeff's suggestion, you can show only smtp connections:

     

    netstat | find "smtp"

     

  • Friday, March 28, 2008 2:31 PMMark Brotcke Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    So no longer can you do it though the exchange system manager as you could in 5.5 2000 and 2003?

     

    Administrative groups / First admin group / servers / *server name* / protocols / smtp / default smtp connector / currant connections

     

     

     

    Seriously?  the removed the ability to monitor and work with your SMTP connector like that?

     

  • Sunday, April 13, 2008 5:49 AMMike Crowley Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    That is correct.  I wish it was still there too...

  • Thursday, August 07, 2008 2:22 PMMike Crowley Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    to correct / adjust my earlier post:

     

    for windows 2008

    ------------------------------

    netstat -a | "smtp"

    or

    netstat -a | "25"

     

  • Thursday, September 04, 2008 7:32 PMjpeevey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I am attempting to find the smtp and clear the queue in 2007 exchange, can anyone help this newbee?

    Thanks

  • Thursday, September 04, 2008 7:53 PMMike Crowley Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    In the future, please start a new thread to ask a new question.  For now, however, here is your answer: http://technet.microsoft.com/en-us/library/bb123535(EXCHG.80).aspx

     

    • Proposed As Answer byjpeevey Monday, April 20, 2009 3:28 PM
    •  
  • Thursday, September 04, 2008 8:00 PMjpeevey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    thank you, I have an additional question and will start a new thread.

     

     

     

  • Thursday, October 29, 2009 2:29 PMPhilip Waters Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    That did not work for me. Nor did netstat -a | "smtp"

    C:\Users\admin>netstat -a | "25"
    '"25"' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\admin>netstat -a | '25"
    ''25"' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\admin>netstat -a | '25'
    ''25'' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\admin>netstat -a | find '25'
    FIND: Parameter format not correct

  • Thursday, October 29, 2009 2:31 PMPhilip Waters Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It really is too bad it is not there! someone asks me "How much traffic do you see coming from [host]?" I have no way to tell anymore. Before I could at least see that the connection was open and had been opened for however long. What an awful loss to not have that feature!
  • Thursday, October 29, 2009 5:49 PMMike Crowley Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Another option would be: netstat -a -n | findstr :25