Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am wondering if I need my own DNS in order to receive emails on my Ubuntu VPS? I am currently using's DNS with my domain and pointing it with A records to my server, and that works for viewing my site but I can only send mail from the server from How can I receive mail from other people without setting up my own DNS?

Could I have an MX record (from pointing to my server? The point is, I don't want to have to set up my own DNS (like bind9 or anything).

share|improve this question

You do not need to run your own DNS server. It is customary to have a so-called MX record describing how to deliver mail to addresses in that domain, but it is not strictly necessary. This is how it works:

A mailserver that wants to deliver mail to your server asks its DNS server for an MX record:

$ host -t MX           MX      10           MX      20

It selects one and asks for its IP address:

$ host -t A      A

However, the mail RFC specifies that if there is no MX (first step comes up empty) it should go look for the IP address directly:

$ host -t A           A

Which means, that you can mail to e.g. and mail servers will try to deliver to that web server.

EDIT: To clarify: the MX record can live in any DNS server whatever. Or, put differently, it must live in exactly the DNS server that is master for the domain the MX record wants to be in.

share|improve this answer

You will have to add to your domain zone an MX resource record pointing to your IP address. You will have to do this using the tools your current DNS provider makes available to you (hopefully).

share|improve this answer

If you have an A record for a domain, the MTAs will use that IP address to deliver the mail for your domain. MX record is not mandatory.

share|improve this answer

As I understand it, mail servers do not require their own DNS servers. That said, the server the email service exists on DOES require access to a DNS server to resolve Names-to-IP's.

What ever you decide to do with your DNS (in house/local or external), you will need to make sure the A record is always up-to-date and that at least one MX record exists.

Now, if you asking 'why can't someone from send an email to me @ .. then you will need to check the email services incoming (ie. SMTP) accept permissions.

You can use a service like MXToolBox to test your SMTP email-receiving service is working correctly.

share|improve this answer

Your Answer


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.