This tutorial shows you how to setup Postfix (smtp server) and Dovecot (imap/pop server). The task of the smtp server is to accept incoming mails and relay outgoing mails from authorised users on the ...
The tutorial explains step by step how to set up a very basic yet working mail server with Postfix and Dovecot for IMAP access. A SQL database is not involved. This project contains the tutorial ...
if you just want to forward email thats comming to one user account you should be able to create an alias. In debian I place this in /etc/mail/aliases I dont know for sure about the second option but ...