Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to host web site / email on 2 different servers

Posted on 2008-10-24
7
Medium Priority
?
236 Views
Last Modified: 2012-05-05
I've recently started renting a dedicated server, and have a client who we have developed a new web site for.

The new site will be hosted on our dedicated server, but the client wishes to maintain control of their email because they have a dedicated email server within their premises.  The smtp functionality in IIS hasn't been activated because so far its not been needed.

Can anyone explain how I create this configuration??  My server control panel lets me create MX records etc for domains, but it says an MX record cannot be an IP address, which is how I thought it would work.  How is this usually done when a dedicated email server exists?  I've never done this so don't know.  Am I correct in thinking that ALL email for this domain would come through my server then redirect to their email server?

Please note that they do not have a seperate subdomain for email; all emails go to user@theirdomain.co.uk
0
Comment
Question by:Rouchie
  • 3
  • 2
  • 2
7 Comments
 
LVL 31

Expert Comment

by:Frosty555
ID: 22797283
If you want to use MX records, your dedicated email server will need to have it's own domain name. That way the MX record for theirdomain.co.uk can forward to theiremaildomain.co.uk.

Alternatively, your DNS that controls theirdomain.co.uk needs to be configured so that it forwards port 25/110/143 for smtp/pop/imap to one place (the email server's IP), and other ports to your web server's IP. Not sure if that kind of functionality is available to you. It depends on your DNS provider.
0
 
LVL 20

Accepted Solution

by:
edster9999 earned 1600 total points
ID: 22797304
You have two servers.  One in your location (or host area) and one in the costomers.

You need to give them DNS names and assign these in the DNS server to the IP addresses so lets call them

www.example.com
and
mail.example.com

set them up with the correct IP addresses

www.example.com = 80.10.10.10
mail.example.com = 90.34.34.34

Now add a mx record to point to mail.example.com

Now incoming web requests will go to the web server and incoming mail goes to the other server with the customer.

Job done.
0
 
LVL 31

Assisted Solution

by:Frosty555
Frosty555 earned 400 total points
ID: 22797317
Using an IP address for the MX record is doable, but typically not allowed. That's the case for you.

According to wikipedia:

"The host name contained in an MX record must have an address, i.e. an A or AAAA DNS record."

...

"It is also impermissible to use an IP address directly in an MX record[2]; while some mailservers will send mail to domains with IP-based MX records, many (most notably Exim) will refuse to do so."
0
Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network today!

 
LVL 25

Author Comment

by:Rouchie
ID: 22797715
Hi everyone

Thanks for your rapid responses.  Its a bit of learning exercise for me so sorry for my ignorance...!


>> Using an IP address for the MX record is doable, but typically not allowed. That's the case for you.

Yes I defintely can't do this according to my host.


>> Now add a mx record to point to mail.example.com

So this seems to get around the problem above....  
Am I correct in thinking that if I do this, then email must be addressed to  someuser@mail.theirdomain.co.uk , with the subdomain in the email address?  


>> Alternatively, your DNS that controls theirdomain.co.uk needs to be configured
>> so that it forwards port 25/110/143 for smtp/pop/imap to one place

I can't see any options for port forwarding, so presume this isn't possible.
Alternatively, there is an option that says "Create a New SPF Record".  This contains tons of options that I've attached to a text file.  Does this look like it might be useful in this situation??


Currently my client manages their DNS settings, so I thought it might just be easier for them to set up forwarding of WWW.theirdomain requests to my server's IP address, so that all the other stuff is dealt on their server.  I still need to understand what's happening though in case their IT people want help with the configuration.
SPF.txt
0
 
LVL 20

Assisted Solution

by:edster9999
edster9999 earned 1600 total points
ID: 22797793
No - you are setting up an mx record on the domain example.com and telling it where to deliver mail (mail.example.com)

so if I email fred.blogs@example.com it will be dropped off at that server
0
 
LVL 20

Expert Comment

by:edster9999
ID: 22797817
You *really* do not want to go with port forwarding.  This is a method used when people are playing with systems on their home dsl not for companies.

SPF = a file to cut down on spam.  If people check it when they receive mail from this host then it tells them where the mail can come from.  You would list the IP addresses of offices and home locations.
If the ip looks right it would be accepted.  If it comes from a little ISP in Russia it would be rejected.

0
 
LVL 25

Author Comment

by:Rouchie
ID: 22797968
Thank you both for your excellent responses.  

I'm going to close this question now and I'll reopen another if I get any more queries directed my way.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question