New IMAP Server for my server?

Currently I use Courier. But OpenXChange is working on an extension for Dovecot to support chatting, in collaboration with Deltachat. As I plan a server migration anyway, this sounds like an interesting option. Not sure whether it would succeed, but getting away from WhatsApp would be welcome. Especially as I don’t want my messenger tied to my phone.