Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am attempting to setup a email server. All my hosting is done on the same IP. I am new to MX Records and cannot seem to find anything that works.

My domain is registered and DNS is by GoDaddy.com.

Can someone please explain how must I setup my MX Records to point to same IP as my web server?

share|improve this question

closed as off topic by Indrek, 8088, Canadian Luke, Olli, Diogo Aug 28 '12 at 20:30

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 2 down vote accepted

In order to point your MX record at a specific IP address, you first need an A record for it to point to. As you have a web server, then you probably have one already:

 domain.com.  14400 IN A <ip address>

So your MX record would want to look like this:

 domain.com.  14400 IN MX 0  domain.com.

This says "Emails for domain.com should be delivered to the server with the IP address that domain.com resolves to".

It is often a good idea to create a separate A record for your email so you can separate email from the webserver down the track if you need to:

 mail.domain.com.  14400 IN A <ip address>
 domain.com.  14400 IN MX 0  mail.domain.com.
share|improve this answer
    
Thank you! And thanks for breaking it down for me! –  alexander7567 Aug 28 '12 at 14:07

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