Link to home
Start Free TrialLog in
Avatar of Elad-a
Elad-a

asked on

Monitor POP3 seesions in powershell

Hi,
I have an two exchange servers, one holding Mailbox role and CAS -non secure (no TLS) for POP3 use. The other server has only the CAS role with TLS ebabled for secure  POP3 use.
The problem is that id like to see when and whom is holding a session with each of the exchange servers  -and for how mutch time. how would i do this with powershell?
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


Hmm you may have to enable protocol logging on the POP3 service. Not aware of any way to show you the current active connections (bear in mind that POP3 connections are relatively short duration anyway).

Not aware of a command you can use to enable the logging either, you have to head to the configuration file here:

C:\Program Files\Microsoft\Exchange Server\ClientAccess\PopImap

If you open Microsoft.Exchange.Pop3.exe.config you should be able to find an entry like this:

            <add key="ProtocolLog" value="false" />

Change false to true, modify the path if you wish. Once done, restart the POP3 service.

With all that you should be able to use PowerShell to parse the log file and return the information you're after. I don't use POP3 here, so I can't tell you much about it, but if you get the log and need help post a sample and a description of what you want from it and we can take it from there.

Chris
Avatar of Elad-a
Elad-a

ASKER

Is there a specific place to inject that key into the file?
The Microsoft.Exchange.Pop3.exe.config looks very formatted i would not like to kill it..
Once i enable Protocol logging, where would the log file be created at?

> Is there a specific place to inject that key into the file?

Yes, it's set to false by default and a search should come up with that line. Just change the value to "true".

The path to the log file is directly beneath that one :)

Chris
Avatar of Elad-a

ASKER

Is it ok to change the path to the log files ?
I would have a great deal of connections per sec' that id need to follow and i dont want to clutter the C drive of my server....
Thanks for your help Chris.. :-)
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Elad-a

ASKER

Thanks Chris!