Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can my web server be at one hosting company, and my email hosted by a 3rd party?

I have a web server that runs my web application.

If I want to outsource my email to another provider, is it possible if they are on their on network/data center?

like image 243
Blankman Avatar asked Nov 04 '08 19:11

Blankman


People also ask

Can I use same domain for email and website?

Yes, you can create both. There should not be a problem. Many Google Workspace customers do the same.

Can you run a mail server on the same host as the web server?

You can run both mail server and web server in the same VPS, but considering that losing access to mail server these days is quite unacceptable, consider running a HA solution with two VPS so that you have access to email even if one of your servers fail.

Can a server have multiple hosts?

If you have one big server with extensive resources like lots of HDD space, RAM, and CPU power, then you can host multiple websites using virtual hosting.

Do I need separate hosting for each domain?

While you may believe that you need to have a separate hosting account for every single domain that you own, the fact is you can manage them with a single account. All you need to do is sign up for the right hosting plan that allows you to support and manage multiple websites from just one hosting account.


2 Answers

Yes, this is possible. You need to use the combination of "A" record and "MX" record.

  1. "A" record will point to your web server where your application is hosted.
  2. "MX" record will point to the server where you want to host your email.

A complete step-by-step reference on how to do this can be found here Hosting website and emails on different servers

like image 199
Narendran Parivallal Avatar answered Nov 13 '22 15:11

Narendran Parivallal


It is possible no matter where they are located, as long as you have control of your DNS records. I have run many sites where the web server is located in our building and the mail server is at the customer's own site, connected with via an unrelated ISP. In one case the web server is in the USA, and the mail server is in the UK.

The DNS records can be on a different server again. Some registrars include editing DNS records in their interface, others just let you set the DNS to another server.

The records that determine the e-mail server are called MX records. They take the name of the mail server (not it's IP address). The records that turn names to IP addresses are called A records - you use these for "www" etc.

like image 32
rjmunro Avatar answered Nov 13 '22 14:11

rjmunro