oregontarheel
Programmer
I'm fairly new at setting up complex DNS setups, but this seems like the sort of thing most ISP's would have to configure at some point.
We have a web application, foo.com. Each account in the system has subdomain.foo.com where they can access their application. In addition, they have the mail domain subdomain.foo.com. We would like to do the least possible amount of DNS configuration for each new account added. The following is what we have set up currently
web IN A [web server ip]
mail IN A [mail server ip]
web IN MX 5 mail.foo.com.
subdomain1 IN CNAME web.foo.com.
subdomain2 IN CNAME web.foo.com.
The idea is that each account's got the one CNAME record, which gets them to the web app as well as points them to the MX record which hangs off web.foo.com. This is working well for us in most cases, but some mail servers resolve a CNAME to its alias, and therefore they try to send email to user@web.foo.com, which is not set up as a valid address since the correct one is user@subdomain1.foo.com. And we bounce the mail. I can solve by setting the A record to the web server and the MX record to mail server for each subdomain, but is there an easier way?
Thanks in advance.
We have a web application, foo.com. Each account in the system has subdomain.foo.com where they can access their application. In addition, they have the mail domain subdomain.foo.com. We would like to do the least possible amount of DNS configuration for each new account added. The following is what we have set up currently
web IN A [web server ip]
mail IN A [mail server ip]
web IN MX 5 mail.foo.com.
subdomain1 IN CNAME web.foo.com.
subdomain2 IN CNAME web.foo.com.
The idea is that each account's got the one CNAME record, which gets them to the web app as well as points them to the MX record which hangs off web.foo.com. This is working well for us in most cases, but some mail servers resolve a CNAME to its alias, and therefore they try to send email to user@web.foo.com, which is not set up as a valid address since the correct one is user@subdomain1.foo.com. And we bounce the mail. I can solve by setting the A record to the web server and the MX record to mail server for each subdomain, but is there an easier way?
Thanks in advance.