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

I am trying to properly set up my ptr record as I have noticed that some email notifications sent from my website have gone to spam for certian people, and I am having trouble figuring out exactly what it should point to.

My website is, which is a service that frequently sends out email notifications etc. My website lives on a specific dedicated IP address, let's call it In addition to sending email notifications, all of my employees have email addresses, we use google apps for this.

I have created an SPF record for my domain, which basically authorizes, google's mail servers to send email, as well as my web server, which lives on However, I am unclear as to how to set up the PTR record.

It is MUCH more important for me that the notifications from my website are not flagged as spam vs. the emails that are sent by my employees through google apps.

Should I simply set up an a record in my DNS called ptr? And point to, and then create a ptr record for and point that to

Thanks in advance.

share|improve this question

migrated from Nov 22 '11 at 14:23

This question came from our site for professional and enthusiast programmers.

It does not matter what domain you're sending e-mail for. Explicitly, it does not matter what your employee's e-mail addresses are, it does not matter if they're I need to make that point 100% clear because everyone assumes it has something to do with this.

Now, your e-mail server has a hostname. For many companies it something like This is what matters in regards to the PTR record. DNS for the mail server must match forward, backward, and with regards to the SMTP communications.

That means:

  1. Your forward host name must resolve to the correct IP. must resolve to
  2. Your reverse pointer must resolve to the correct host name. must point to
  3. When your server connects to another server, it must connect from IP and announce itself as (the HELO or EHLO message).

If you have more than one server they each get their own host name (eg and, and the above has to be true for each server.

share|improve this answer
Is there a diagram for this? This thing is really confusing everywhere I read. – Jake Dec 1 '11 at 1:26
Do I need to do anything i.e. set PTR records at my own zone in Or the ISP providing the dedicated IP will handle it? – Jake Dec 1 '11 at 1:33
PTR records are only set on the reverse lookup (ie IN-ADDR.ARPA). The "A" and "MX" records are only for the forward lookup (ie If you're using any sort of management system it should keep you on the straight. – Chris S Dec 1 '11 at 3:21

If you have a dedicated IP address, there will probably be an option to set the PTR name for the IP somewhere in the control panel you have from your hosting provider.

share|improve this answer
Thanks for the comment but this is not what I'm asking. I have the ability to set a ptr record, i'm just not exactly sure what to set it to since I just need an IP to be whitelisted, not a domain name. – Henry Wrinkler Nov 21 '11 at 23:30
I'm not sure what you're looking to achieve with the PTR record then. Usually with PTR's it's to create a reverse DNS lookup (IP -> domain) so that email clients can be sure that that is the correct IP for that domain. You (probably) do this at the host, because they own your IP. If this is about SPF, then you just need to create the TXT record for the domain you want to authenticate (e.g., a TXT on, no PTR necessary. – bhamby Nov 22 '11 at 0:47
@Henry Wrinkle Were you are to set this up? what galador might be saying is that the PTR is not set at the DNS zone for, but rather at your ISP's zone. – Jake Dec 1 '11 at 1:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.