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 ?

2 Answers

Relevance
  • BigE
    Lv 7
    2 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 1.2.3.4 or www.mydomain.com and mail server "mail.mydomain.com" at 5.6.7.8.  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 1.2.3.4

    @ IN  MX  0 mail.mydomain.com.

    www IN A 1.2.3.4

    mail IN A 5.6.7.8

    So the IP for mydomain.com is 1.2.3.4, 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.

  • 2 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.

Still have questions? Get your answers by asking now.