Since I switched ISP I'm having quite some problems with my mail. Sometimes mails will be rejected by the receiving side with the following message:
This is the mail system at host mail.xyz.ch.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system ...
Action: failed Status: 5.7.1 Remote-MTA: dns; postrelay2.lrz-muenchen.de Diagnostic-Code: smtp; 550 5.7.1 Client host rejected: cannot find your hostname, [213.xxx.yyy.zzz]]
So apparently the receiving side of the communication is complaining that it could not find the hostname mail.xyz.ch in the reverse DNS lookup.
Now I'm sure that I configured all the PTR entries in bind to point to the real hostnames:
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA dns3.xyz.ch. root.xyz.ch. (
20100328 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
NS dns3.xyz.ch.
NS dns2.xyz.ch.
129 PTR ssh.xyz.ch.
129 PTR www.xyz.ch.
129 PTR mail.xyz.ch.
But a reverse DNS lookup still only provides the the ISP name: cust.static.213-xxx-yyy-zzz.swisscomdata.ch
.
Any idea on how to fix this? Do I have to contact my ISP?
Typically the reverse DNS for the IP is managed by the ISP. This is not strictly speaking a guarantee, but I would be highly surprised if you were actually in charge of the reverse DNS record in this case. Generally speaking, a company purchases the use of those IPs from the ISP and as such, they maintain all IP specific records, including reverse DNS. Basically, whoever looks at your BIND database for DNS will see the record fine but assuming that is not the public authoritative DNS server for your domain setting the record there does you little to no good.
The short version - yeah you need to contact your ISP and ask them to change the record
In this case, no. It's just complaining that it couldn't find any reverse DNS entry for your IP address. The reverse DNS entry does not need to match the hostname you present yourself as.
In fact, even if the server does the more strict "Forward-Confirmed Reverse DNS" (FCrDNS) check, the hostname it finds still does not need to match the hostname you present yourself as in something like your HELO/EHLO. It only needs to confirm that the forward DNS lookup on the hostname returned by your Reverse DNS lookup matches your IP address.
So it's still perfectly fine, even for FCrDNS, for you to present yourself as "mail.xyz.ch" but have an IP address with a Reverse DNS entry for "something.else.co". And to make sure it confirms in the forward direction, "something.else.co" must have a forward DNS entry that points to your IP address.
In that case, it looks like Reverse DNS is working fine, at least from your end. Confirm this with an external Reverse DNS lookup tool to confirm other servers see the same thing.
If that finds the reverse DNS entry, then it's possible the error was at the receiving mail server. A temporary DNS problem at the receiving mail server could cause an error message like this. Usually such an error should cause the sending mail server to re-try sending later as this is classified as a temporary problem.
The simple answer is to contact the company from where you are getting the IP, in my case it was Telstra and they have custDATA portal from where you can configure reverse DNS using online form. Thats it.
Thanks hope this helps.
Try:
What's the response?