See INSTALL.md file.
See RFCs.
Please use the Dovecot mailing list dovecot@dovecot.org for questions about Dovecot. You can post to the list without subscribing, the mail then waits in a moderator queue for a while. See https://www.dovecot.org/mailing-lists