Say I have two Rackspace Cloudservers, or VPSes for that matter. I want my setup to be:
- Server1 would have my Apache web server
- Server2 would have my mail server where I want to setup postfix+mysql (virtual users, etc).
Since Server1 is already visible to the web, I want that to be the domain for my mail. So let's say I have a domain whose MX records points to "Server1.com", but Server2 has the mail server. So can I somehow get iptables to forward the packets to Server2 provided they're both on the same network? How would this affect user authentication on the mail server?
P.S. On this setup, I want all the non-web stuff outside Server1 to free up memory. I'm also thinking of having all the database in the email server (Or should I have another dedicated server for this?)
Thanks,
Ramon