Modoboa is a nice all-in-one email package. Sadly it lacks configuration possibilities for certificates and the default config uses just self signed certificates. This tutorial explains how to create and configure lets encrypt for your mail server.