Results 1 to 4 of 4
  1. #1

    Email Hosting Vs Website Hosting

    Can someone explain, how can you keep your emails with one host and host your website with another?
    I have a client who has hosting with me but emails with another. They have put a A pointer to point to my hosting ip and the site is working fine. What should point to the other email hosting company for the email to work properly?

    Also if anyone can point to a resource where I can read and understand all the MX records available their functions and how they work, that would be a nice guide for us newbies.
    Thanks for reading everyone.
    Farhan M | Host Surf UK
    UK VPS, Dedicated Servers, Cloud Servers
    Managed & Unmanaged | 24/7 Technical Support
    0 Day Cancellation & No Setup Fee

  2. #2
    Join Date
    Aug 2009
    Posts
    6
    Hi Farhan713,

    This is very easy to do. To start with, you need to make these changes in the authoritative name servers for the domain in question. From your example it sounds the other company has that honor.

    They have the zone file (the text file that holds the domain and host info). In that zone file they have a record for your web server an "A Record" aka Host Record.

    Linux:
    (your ip for web hosting)
    yourdomain.com. IN A 10.10.10.12
    www IN A 10.10.10.12

    (A Record for their ip for mail)
    mail IN A 35.35.35.36

    (mx record to tell the rest of the internet which server to go to for mail - the mail host record above will tell the remote mail server the ip address of your mail server)
    yourdomain.com. IN MX 0 mail.yourdomain.com.

    The 0 can really be any number. It only has meaning if you have more than one mail server. The lower the number the higher the priority. For example, let's say you have a primary mail server and a backup mail server. you want the primary mail server to always receive mail unless it's unreachable, then use the secondary. Then you would set your records up like:

    mail01 IN A 35.35.35.36
    mail02 IN A 35.35.35.37
    yourdomain.com. IN MX 10 mail01.yourdomain.com.
    yourdomain.com. IN MX 20 mail02.yourdomain.com.

    I hope this helps.

    Regards,
    Bang

  3. #3
    Join Date
    Dec 2008
    Location
    Florida
    Posts
    1,052
    Quote Originally Posted by bangweb View Post
    Hi Farhan713,

    This is very easy to do. To start with, you need to make these changes in the authoritative name servers for the domain in question. From your example it sounds the other company has that honor.

    They have the zone file (the text file that holds the domain and host info). In that zone file they have a record for your web server an "A Record" aka Host Record.

    Linux:
    (your ip for web hosting)
    yourdomain.com. IN A 10.10.10.12
    www IN A 10.10.10.12

    (A Record for their ip for mail)
    mail IN A 35.35.35.36

    (mx record to tell the rest of the internet which server to go to for mail - the mail host record above will tell the remote mail server the ip address of your mail server)
    yourdomain.com. IN MX 0 mail.yourdomain.com.

    The 0 can really be any number. It only has meaning if you have more than one mail server. The lower the number the higher the priority. For example, let's say you have a primary mail server and a backup mail server. you want the primary mail server to always receive mail unless it's unreachable, then use the secondary. Then you would set your records up like:

    mail01 IN A 35.35.35.36
    mail02 IN A 35.35.35.37
    yourdomain.com. IN MX 10 mail01.yourdomain.com.
    yourdomain.com. IN MX 20 mail02.yourdomain.com.

    I hope this helps.

    Regards,
    Bang
    Wow that was a great explanation, I was thinking of just telling him it was based around the DNS records, although this makes my response look very dull.

    Good post, thanks!
    Not sure what to put here :-P

  4. #4
    Quote Originally Posted by bangweb View Post
    Hi Farhan713,

    This is very easy to do. To start with, you need to make these changes in the authoritative name servers for the domain in question. From your example it sounds the other company has that honor.

    They have the zone file (the text file that holds the domain and host info). In that zone file they have a record for your web server an "A Record" aka Host Record.

    Linux:
    (your ip for web hosting)
    yourdomain.com. IN A 10.10.10.12
    www IN A 10.10.10.12

    (A Record for their ip for mail)
    mail IN A 35.35.35.36

    (mx record to tell the rest of the internet which server to go to for mail - the mail host record above will tell the remote mail server the ip address of your mail server)
    yourdomain.com. IN MX 0 mail.yourdomain.com.

    The 0 can really be any number. It only has meaning if you have more than one mail server. The lower the number the higher the priority. For example, let's say you have a primary mail server and a backup mail server. you want the primary mail server to always receive mail unless it's unreachable, then use the secondary. Then you would set your records up like:

    mail01 IN A 35.35.35.36
    mail02 IN A 35.35.35.37
    yourdomain.com. IN MX 10 mail01.yourdomain.com.
    yourdomain.com. IN MX 20 mail02.yourdomain.com.

    I hope this helps.

    Regards,
    Bang
    thanks bangweb for taking the time for the detailed explanation.
    Farhan M | Host Surf UK
    UK VPS, Dedicated Servers, Cloud Servers
    Managed & Unmanaged | 24/7 Technical Support
    0 Day Cancellation & No Setup Fee

Similar Threads

  1. DNS Setup - Hosting Website Internally - email externally
    By tfrunner in forum Hosting Security and Technology
    Replies: 4
    Last Post: 07-04-2008, 06:20 AM
  2. Separate email and website hosting
    By sblugh in forum Web Hosting
    Replies: 7
    Last Post: 01-01-2007, 03:16 PM
  3. Email Only Hosting for a Raq Website?
    By smc_one in forum Dedicated Server
    Replies: 3
    Last Post: 06-15-2004, 06:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •