how can I run my domain name and e mail in different servers?
my domain name is running in my webdesigner server , but i want to run my e mail in my own server ,how can domain name and e mail run in two servers ?
- ?Lv 72 months ago
DNS MX records determine mail routing. Look them up because they have a precedence to them. The other thing is that mail routing uses MX record but the old version simply connected to the IP directly as a last resort.
Your domain can have separate A records (this is mostly for web) as well as MX records and nothing has to be the same. So suppose we have domain "mydomain.com" , web server 188.8.131.52 or www.mydomain.com and mail server "mail.mydomain.com" at 184.108.40.206. We want the web server to respond both to www.mydomain.com AND mydomain.com and we configured the web server to do that.
So in DNS (where @ is the domain mydomain.com)
@ IN A 220.127.116.11
@ IN MX 0 mail.mydomain.com.
www IN A 18.104.22.168
mail IN A 22.214.171.124
So the IP for mydomain.com is 126.96.36.199, and this is for your web server to get connections for "mydomain.com" Mail will route to mail.mydomain.com. Using MX records, your domain's IP is not really associated with how your mail routes.
- David KLv 62 months ago
The server with website must be primary. There are settings to change in cpanel on that server to redirect email to your server. For details, I suggest looking for websites that offer email services and read their instructions to get the fundamentals.