Example Dovecot + Postfix configuration can be found at https://git.dblsaiko.net/systems
maddy.email seems to be easier to configure