Outlook Your IMAP server closed the connection with Mdaemon server

If you are using Outlook with IMAP to collect your email and running and mdaemon server you may frequently receive the message: Your IMAP server closed the connection. This can occur if you leave the connection idle for too long In Mdaemon go to setup, Default Domain timeouts and check off IMAP NOOP and IDLE.