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

Typically when setting up a mail server, I create an rDNS record for the mail server IP to match the mail server hostname (ex:

Can I instead set the rDNS ptr to match the parent domain (e.g., if this server is being used for multiple purposes, and still send mail successfully (i.e. not be classified as spam b/c of mismatched rDNS)?


EDIT: The article at seems to indicate that it might be more complicated than I had thought. For instance, 1) I did not know that you could have multiple PTR records for a given IP; 2) it appears that as long as each PTR record matches an A record, everything is good (basically nullifying my question). Would you agree?

share|improve this question
up vote 3 down vote accepted

Most receiving mail servers that I have encountered in the wild look to make sure that the incoming IP address has a reverse DNS entry and stop there. For the most part, as long as one exists, it will be accepted.

Some will try to resolve the hostname returned from the reverse DNS lookup and ensure it resolves (but it need not match the incoming IP). Some go as far as to compare the results (hostname must match the incoming IP).

I generally ensure a "resolution loop" by having the hostname map to the IP, and the reverse entry on the IP match the hostname. Just having a reverse DNS entry will be sufficient in most cases, even if it doesn't match perfectly.

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.