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 have just installed mail enable on my server.

I need help understanding what is the IP of my mail server and where to point my MX records?

Say if my server IP is 81.222.222.222 is this where I point my MX records etc?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

To get email working you actually need 2 DNS records.

  1. Create an "A" record that gives a name to the mail server and points to the IP. eg: mail.yourdomain.com. A 81.222.222.222
  2. Create an "MX" record that points to your mail server name. eg: yourdomain.com. MX 10 mail.yourdomain.com.

The 10 in above example is the priority. If you have multiple records, the lower the number, the higher the priority.

share|improve this answer
    
so to be clear...i have an a record for mydomain.com and then an a record for mail.mydomain.com which both point to the same ip? –  Beginner Dec 6 '12 at 9:12
    
then i point the mx record at mail.mydomain.com? –  Beginner Dec 6 '12 at 9:12
    
A records tell which IP belongs to which name, since you need to point an MX record to a name, you also need to match that name to a IP address. the A record for "yourdomain.com." is not required, however you probably want to point such an address to your http server. –  Flash Dec 6 '12 at 9:51

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.