It's a single go binary that supports IMAP and SMTP, with a CLI (maddyctl) to help you set it up. TLS can be added with acme.sh.