There are a number of ways to get the information you need, based on just knowing you need Postfix and Dovecot.
You might consider looking at this post on the forums at raspberrypi.org. It has a number of people running working mail servers on the RaspberryPi and links to the tutorials they used.
You could also try searching Google for "how to setup postfix and dovecot on debian". There are hundreds of tutorials on how to do this with example configurations.
You could also reference the Postfix and Dovecot documentation, as they also provide information on, not only how to configure the respective pieces of software, but also tutorials and examples of configuration.
There is really no 'silver bullet' solution to setting this up, as it comes down to what you want to get out of it and how you want it to work which, since you don't really have a clearly defined goal, will take some trial and error. Learn by doing.