Is there a simple way, preferably using LAMP tools, to register a domain, and setup the email system such that it takes all emails sent to name@foo.com and forwards them to name@bar.com.
i.e., automate all the forwarding based on the username, so name@foo.com would forward to name@bar.com, across all usernames.
EDIT: Fixed the error.