Friday, May 6, 2011

IMAP transport logging

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:
  1. Browse to C:\Program Files\Microsoft\Exchange Server\ClientAccess\PopImap
  2. Open Microsoft.Exchange.Imap4.exe.config with text editor (e.g. Notepad) and scroll to the bottom
  3. Modify ProtocolLog from false to true.
  4. Modify LogPath as necessary
  5. 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.

No comments:

Post a Comment