This is a mail server setup using Postfix as Mail Transport Agent (MTA) and Dovecot as Mail Delivery Agent (MDA) and IMAP/POP3 server.
This is my personal setup, which is based on Christoph Haas' ISPmail tutorial, though it deviates in some aspects.
You may freely use the content of this repository (it's MIT licensed), but be aware that you will have to adjust some aspects. I highly recommend working through the tutorial to get a deeper understanding of what is going on.