there are numerous howtos for a few setups, such as
probably for exim too
A good starting point would be to figure out what exactly you want.
then search in that direction.
have a look at
mysql/postgresql if you decide to add a db to it.
howtoforge.com has a few howtos on those too