Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm setting up an Exchange Server 2010 on Server 2008 R2.

I want to make my webserver (on a separated server) to use this server as the mail server.

I guess I'd have to change MX records to point to my exchange server, but what would be DNS settings on my exchange server considering I need outlook web app as well which will be running on the exchange server IIS .

and another question , can I add two MX records ? to two different mail servers ? Does it then forward the receiving emails to both servers ?

Thanks a lot

share|improve this question
    
This doesn't make sense. Are you saying that you have an app on your web server and you would like it to send mail through Exchange? –  MDMarra Jan 27 '13 at 14:37

2 Answers 2

up vote 2 down vote accepted

You can have your web server relay through your Exchange server.

  • Your Exchange server has a name. Your Web server has a name. Those names should be different A records.
  • Your MX records are for mail delivery, so you'd configure those to point to your Exchange server's A record.
  • Your A records (address record) would point to your web server and mail server.
  • MX records can be weighted and allow delivery to multiple destinations. However, I don't think you need this in your case. You have to get your main DNS issues situated first.

A sample zone file:

  • lime is the A record for the Exchange server. The MX record for mail delivery points to "lime".
  • The "A" record for the website points to a different server than "lime".
  • The web server relays mail through lime.
  • The OWA access can be accessed via lime.

enter image description here

share|improve this answer
    
Yes, this is exactly what IM trying to do , thanks a lot, but a question where are these DNS records located on the webserver ? or the ns server which domain is pointed to !? –  user65248 Jan 27 '13 at 15:32
    
These DNS records reside on the authoritative nameserver for the domain. This can either be your registrar or another DNS hosting provider. Try looking your domain name up at whois.net if you're not sure. –  ewwhite Jan 27 '13 at 15:36
    
Cool so if my domain is pointing to my webserver ip, the dns records should be set on the web server , right ? –  user65248 Jan 27 '13 at 15:44
    
No. The DNS records are set with your DNS host. –  ewwhite Jan 27 '13 at 16:08
    
Ah ok , Thanks a lot –  user65248 Jan 27 '13 at 16:09

I guess I'd have to change MX records to point to my exchange server, but what would be DNS settings on my exchange server considering I need outlook web app as well which will be running on the exchange server IIS .

I think what you're trying to ask is what A record should you use to get to OWA. The answer is to use whatever you want. mail.example.com is pretty common and easy to remember.

and another question , can I add two MX records ? to two different mail servers ? Does it then forward the receiving emails to both servers ?

You can have more than one MX record. They have a value for priority. All mail will attempt to be delivered to the highest priority record and will only try lower priority servers if mail is undeliverable to the first choice.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.