This is a problem about maintaining an all-email VPS server.
First, I have two VPS hosts right now, both running CentOS 6.5, 32bit system. one for web hosting and other for email only.
The reason for that is, since I have many sites, I want the web hosting environment to be completely isolated from the email.
So, I added A record for my domains in this order.
198.551.224.10 www.my-site.tld # Pointing to my web host IP
198.551.224.10 my-site.tld # Pointing to my web host IP
198.551.224.11 mail.my-site.tld # Pointing to my mail host IP
The problem with this approach is that, every email created now will have a prefix of mail
before it, like [email protected]
so, I was thinking of changing the above configuration to this:
198.551.224.10 www.my-site.tld # Pointing to my web host IP
198.551.224.10 my-site.tld # Pointing to my web host IP
198.551.224.10 mail.my-site.tld # Pointing to my mail host
This way, all addresses are pointing to the same IP, and then somehow tell nginx to redirect any information coming from server mail.my-site.tld
to IP 198.551.224.11 (the EMAIL server)
The problem is telling Nginx to redirect the request, yet if anyone has any better information about how to keep an separate email server while retaining that standard email format ex: [email protected]