Enable IMAP on all Exchange 2013/2016 Servers
IMAP and POP3 are disabled on Exchange Server 2013 and 2016 servers by default. Chances are if you need to enable it, you’ll need to enable it on all your servers at once. Fortunately, PowerShell makes this easy!
Run Exchange Management Shell as administrator on an Exchange server and execute the following: