Koozali.org: home of the SME Server

What to write in a reverse DNS ptr record?

Offline dmajwool

  • *****
  • 180
  • +0/-0
What to write in a reverse DNS ptr record?
« on: December 13, 2006, 11:16:28 PM »
Hi.
Some advice please, for my sme 7.0.

I've been searching for a solution why my mail to just one of my clients is being rejected by his ISP.  His ISP tells him that my rDNS is at fault.

At www.dnsstuff.com, my rDNS record is reported as

Quote
OK. The IPs of all of your mail server(s) have reverse DNS (PTR) entries. RFC1912 2.1 says you should have a reverse DNS for all your mail servers. It is strongly urged that you have them, as many mailservers will not accept mail from mailservers with no reverse DNS entry. Note that this information is cached, so if you changed it recently, it will not be reflected here (see the www.DNSstuff.com Reverse DNS Tool for the current data). The reverse DNS entries are:

1xx.1xx.2xx.217.in-addr.arpa mydomain.co.uk. [TTL=86400]


should I change this to
mail.mydomain.co.uk
or
servername.mydomain.co.uk ?


I also see the following warning from www.dnsstuff.com

Quote
WARNING: One or more of your mailservers is claiming to be a host other than what it really is (the SMTP greeting should be a 3-digit code, followed by a space or a dash, then the host name). If your mailserver sends out E-mail using this domain in its EHLO or HELO, your E-mail might get blocked by anti-spam software. This is also a technical violation of RFC821 4.3 (and RFC2821 4.3.1). Note that the hostname given in the SMTP greeting should have an A record pointing back to the same server. Note that this one test may use a cached DNS record.

mail.mydomain.co.uk claims to be non-existent host servername.mydomain.co.uk:
220 servername.mydomain..co.uk ESMTP


What can I do to clear this warning?

Many thanks

David.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: What to write in a reverse DNS ptr record?
« Reply #1 on: December 21, 2006, 04:39:29 PM »
dmajwool

> should I change this to mail.mydomain.co.uk

The reverse DNS entry for your servers IP address should be changed to
mydomain.co.uk
although that is something you request your ISP to do.
...

Offline dmajwool

  • *****
  • 180
  • +0/-0
What to write in a reverse DNS ptr record?
« Reply #2 on: December 21, 2006, 05:25:41 PM »
Ray.

Thanks for that.  Since I posted the question we have done a lot of reading, and even more head scratching.  We are coming to the conclusion that our DNS is correct, and that there must be some other reason why just one of my customer's ISP is bouncing our mail.

You say the rDNS should be simply mydomain.co.uk

However, http://www.dnsstuff.com/info/revdns.htm  consistently uses the syntax host.example.com

I realise that dnsstuff.com are not authorative, but they do seem quite thorough :-)


Quote
WARNING: One or more of your mailservers is claiming to be a host other than what it really is.....What can I do to clear this warning?


I created an A record for servername.mydomain.co.uk and the warning cleared.

I'll let you know what fixes our bouncing mail problem as soon as we get there.

David.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: What to write in a reverse DNS ptr record?
« Reply #3 on: December 21, 2006, 06:59:04 PM »
Quote from: "dmajwool"

220 servername.mydomain..co.uk ESMTP

[/quote]

I noticed you have 2 dots ..co.uk from your warning message ?!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dmajwool

  • *****
  • 180
  • +0/-0
What to write in a reverse DNS ptr record?
« Reply #4 on: December 21, 2006, 11:22:51 PM »
Quote

I noticed you have 2 dots ..co.uk from your warning message ?!

Sorry, that's just a typo whilst obfuscating the real domain name.

David.

Offline byte

  • *
  • 2,183
  • +2/-0
What to write in a reverse DNS ptr record?
« Reply #5 on: December 21, 2006, 11:36:44 PM »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline raem

  • *
  • 3,972
  • +4/-0
What to write in a reverse DNS ptr record?
« Reply #6 on: December 21, 2006, 11:37:50 PM »
dmajwool

I had reverse DNS issues in relation to being put on a blacklist, and had to get my ISP to set reverse DNS as my main domain name, in the form as suggested previously.
I was then able to get removed from the list.


> http://www.dnsstuff.com/info/revdns.htm  consistently uses the syntax host.example.com

They also use in the very first line the word "might":
"for example, it might turn 192.0.2.25 into host.example.com."


> I created an A record for servername.mydomain.co.uk and the warning cleared.

Does creating the A record change anything in regard to reverse DNS ? They also say further down:

Reverse DNS entries are set up with PTR records (whereas standard DNS uses A records), which look like "25.2.0.192.in-addr.arpa. PTR host.example.com" (whereas standard DNS would look like "host.example.com. A 192.0.2.25").

and

1. Your DNS servers (or your ISP's) MUST have the reverse DNS entries set up ("25.2.0.192.in-addr.arpa. PTR host.example.com").
2. AND your ISP or bandwidth provider MUST set up the reverse DNS on their end, so that DNS resolvers around the world will know that your DNS servers are the ones to go to when looking up the reverse DNS for your IP addresses.
...

Offline dmajwool

  • *****
  • 180
  • +0/-0
What to write in a reverse DNS ptr record?
« Reply #7 on: December 22, 2006, 08:18:37 AM »
Quote from: "byte"
Would this apply?
http://bugs.contribs.org/show_bug.cgi?id=1325
Thanks.  I found that discussion very helpful. I'm concluding that in order to avoid DNS related issues I need to make my domain records broader rather than minimal and strictly compliant.  That's why I added the additional A record.

Quote from: "Ray"
Does creating the A record change anything in regard to reverse DNS ?
I don't think so.  It was related to my second question about the "host name in greeting" warning.

Quote from: "Ray"
1. Your DNS servers (or your ISP's) MUST have the reverse DNS entries set up ("25.2.0.192.in-addr.arpa. PTR host.example.com").
2. AND your ISP or bandwidth provider MUST set up the reverse DNS on their end, so that DNS resolvers around the world will know that your DNS servers are the ones to go to when looking up the reverse DNS for your IP addresses.
So I must refer to the rDNS (held at my ISP) in my main DNS (held at my domain host)? Hmm. I'll think about that.

Thanks, David.

Offline skydivers

  • *
  • 178
  • +0/-0
Re: What to write in a reverse DNS ptr record?
« Reply #8 on: March 20, 2007, 09:40:52 AM »
Quote from: "RayMitchell"
dmajwool

> should I change this to mail.mydomain.co.uk

The reverse DNS entry for your servers IP address should be changed to
mydomain.co.uk
although that is something you request your ISP to do.


I also have to change the reverseDNS entry. Is it enough to change it to mydomain.be or is also possible to change it to servername.mydomain.be

Offline dmajwool

  • *****
  • 180
  • +0/-0
Re: What to write in a reverse DNS ptr record?
« Reply #9 on: April 10, 2007, 03:24:30 PM »
Quote from: "skydivers"
I also have to change the reverseDNS entry. Is it enough to change it to mydomain.be or is also possible to change it to servername.mydomain.be

I think it will be sufficient to name your rDNS mydomain.be

It seems to me that the reverse DNS, when it is used at all,  is used for very basic authentication, and I don't think a remote host won't reject you based on the subdomain in your rDNS.

I started this thread trying to avoid further mail rejections to one ISP.  It turned out that the problem was in that ISP's user database, and not my rDNS.

HTH, David.

Offline skydivers

  • *
  • 178
  • +0/-0
Re: What to write in a reverse DNS ptr record?
« Reply #10 on: April 10, 2007, 03:32:28 PM »
Quote from: "dmajwool"
Quote from: "skydivers"
I also have to change the reverseDNS entry. Is it enough to change it to mydomain.be or is also possible to change it to servername.mydomain.be

I think it will be sufficient to name your rDNS mydomain.be

It seems to me that the reverse DNS, when it is used at all,  is used for very basic authentication, and I don't think a remote host won't reject you based on the subdomain in your rDNS.

I started this thread trying to avoid further mail rejections to one ISP.  It turned out that the problem was in that ISP's user database, and not my rDNS.

HTH, David.


My ISP changed it to mail.mydomain.be still hotmail refuses the mails. Probably I am on one of their blacklists, but getting off these blacklists is not that simple.

Offline dmajwool

  • *****
  • 180
  • +0/-0
What to write in a reverse DNS ptr record?
« Reply #11 on: April 10, 2007, 03:51:52 PM »
We had a different problem with rejections by AOL because our external fixed IP was somewhere in the middle of a vast  "residential" subnet.  We fixed this by using our ISP's smtp server to deliver our mail rather than the SME.

In server-manager email panel, we set Address of Internet provider's mail server = smtp.easynet.co.uk

Offline skydivers

  • *
  • 178
  • +0/-0
What to write in a reverse DNS ptr record?
« Reply #12 on: April 10, 2007, 05:42:25 PM »
Quote from: "dmajwool"
We had a different problem with rejections by AOL because our external fixed IP was somewhere in the middle of a vast  "residential" subnet.  We fixed this by using our ISP's smtp server to deliver our mail rather than the SME.

In server-manager email panel, we set Address of Internet provider's mail server = smtp.easynet.co.uk


This is indeed what i am also planning to do.

Thanx