Check your server with this powershell command
Get-HealthReport servername | where { $_.state -eq “Offline”}
now you should see your imap proxy is offline
bring back to life with
Set-ServerComponentState -Identity servername-Component IMAPProxy -State Active -Requester HealthAPI
found here
See Microsoft KB
More information about troubleshoot imap
https://technet.microsoft.com/en-us/library/ms.exch.scom.imap%28v=exchg.150%29.aspx