So if you’re building custom applications to connect with IMAP you may need to turn on logging for the IMAP transport layer. Don’t confuse this with turning up logging on the IMAP4 Service to Expert. That will just give you increased application logging. I’m talking about monitoring transport and connection attempts.
To enable the logging for IMAP, you would do this:
- Browse to C:\Program Files\Microsoft\Exchange Server\ClientAccess\PopImap
- Open Microsoft.Exchange.Imap4.exe.config with text editor (e.g. Notepad) and scroll to the bottom
- Modify ProtocolLog from false to true.
- Modify LogPath as necessary
- Restart the MsExchangeImap4 service
Another setting that you may find interesting is AgeQuotaInHours. This prevents you from filling the log drive with old log files. The default is 24 hours so you’ll need to change this if you are having intermittent or ongoing issues.
You can do the same thing for POP, simply edit Microsoft.Exchange.Pop3.exe.config instead and restart the MsExcahngePop3 service.