Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

It is an ordinary server: we will run a web site on and it should be able to send/recieve email.

share|improve this question
up vote 8 down vote accepted

You should set up an A record, a PTR and an MX record, which points to the A record.

A: Mapping hostname to IP ( ->
PTR: Reverse mapping of the above ( ->
MX: Tells foreign mail server who takes mail for your domain ( (MX =


share|improve this answer
Note that the PTR record will be in the reverse DNS zone, which is handled by whoever owns/provides your IP addresses. Usually this will be your ISP or co-location provider. In some cases, with AT&T especially, they will want to delegate the reverse DNS to your DNS servers, so be ready for that if needed. – Justin Scott Jul 9 '09 at 14:44

To state the most obvious only, you will need an A record for the domain you wish to use pointing to that server, and you'll need to specify that server in the MX records of your domain. You will probably also want to setup SPF and SRV records as well, to help legitimize the standing of the email server.

Is there anything more specific you'd like some help with?


share|improve this answer
Yes. I would like to hear more about interaction with mail servers. What records should I set up so they won't treat my e-mail messages as spam? – lexsys Jul 9 '09 at 12:26
As PEra mentioned, you should also have a PTR record in place which I forgot to mention. That and SPF should have you up and running no trouble. – Ehtyar Jul 9 '09 at 12:30

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.