I've never had problems with IMAP, nor do I use Exchange, so I can't speak to those...
https://lucy.apache.org