2

I have a VPS running ubuntu 11.10 for a Django app, I want to be able to handle the email for one specific domain (already have the reverse lookup setup with the ISP for that domain), all I'm doing is forwarding email to different addresses, example first_name@mydomain.com -> first_name8384@gmail.com , second_name@mydomain.com -> second_name99348@yahoo.com ... What should I use, and how do I set it up. I'm using Cherokee for the django app since I know someone's going to ask(I know nginx is supposed to do email, but I'm not switching).

wmbf86
  • 155

2 Answers2

3

You are looking for an MTA like postfix or exim.

Use any decent MTA. The fact that your server will not host the mailboxes itself but forward all mail to external servers should not influence much your choice: You just won't have to install additionnal software like pop server or webmail.

You can look at /etc/aliases to forward mail.

1

This old ServerFault thread shows how to use the Exim MTA to implement this:

Setting up Exim to forward mail

For this to work, the VPS will either need to be the primary MX for mydomain.com, or have another MTA forward mail to it directly.