Hosting my own mailserver for Discourse?

I’ve looked into mailinabox but it only supports Ubuntu 14.04