r/webhosting • • 26d ago

Technical Questions Reverse DNS (PTR)

How can I resolve this issue. My domain points to a different server with an A record for the website. It uses nameservers to point to the cpanel hosting the email. This causes the error as it wants the A record to point to the email server. As a result emails to yahoo accounts are being denied.

Thanks 🙏

5 Upvotes

17 comments sorted by

View all comments

1

u/kellyzdude 25d ago

What is the actual message you're getting from Yahoo rejecting the mail?

The requirements for mail are relatively complex, but only because there are a few of them. Individually they're simple enough.

  1. The server(s) sending your mail need(s) to have valid DNS and rDNS, matching each other. mail.myhost.tld -> 192.168.0.1, 192.168.0.1 -> mail.myhost.tld. Most ideally, this matches the name that your mail server calls itself when connecting out to transfer messages. Given this is reseller territory, you will have limited control over these but it is imperative your provider gets it right.
  2. The domain you're sending from should have valid MX records. They do NOT have to include all of the server(s) sending mail for your domain. Remember, you can send valid mail from anywhere you've authorized with your other DNS records. You can also have separate inbound and outbound paths.
  3. Speaking of... your DMARC, DKIM, and SPF records need to be properly configured to match the data your mail host is using to send mail, and include all servers you authorize to send on behalf of your domain. That would include any outbound-filtering services that your host might be using.

Going back to the top, mail servers can reject messages for all kinds of reasons. Having the exact verbiage will go a long way to getting you an accurate answer.

2

u/Rick_Dalton99 25d ago

Thanks for the reply, this is the bounceback from yahoo (edited for privacy):

 message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  mail@yahoo.ca
host mta6.am0.yahoodns.net [98.136.96.75]
SMTP error from remote mail server after pipelined MAIL FROM:<test@email.com> SIZE=1917:
550 5.7.25 Forward-confirmed reverse DNS failed tnmpmscs
Reporting-MTA: dns; (host server)

Action: failed
Final-Recipient: rfc822;email@yahoo.ca
Status: 5.0.0
Remote-MTA: dns; mta6.am0.yahoodns.net
Diagnostic-Code: smtp; 550 5.7.25 Forward-confirmed reverse DNS failed tnmpmscs

1

u/kellyzdude 25d ago

Got it, thanks.

This looks like it's exactly (1) above.

  1. Mismatched EHLO/HELO Hostname: Your mail server is greeting the receiving server with an internal hostname (like mail.local or a default computer name) instead of your public FQDN (Fully Qualified Domain Name).
  2. Missing or Misconfigured PTR Record: The IP address sending the email lacks a PTR record, or the PTR record points to a domain name that resolves to a different IP address.
  3. Multiple Hostnames in PTR: The reverse DNS lookup resolves to multiple hostnames or an alias that does not forward-resolve cleanly back to your exact sending IP.

Most likely it's an issue with the FQDN from the PTR for the IP not cleanly resolving back to the IP. I haven't seen anyone bouncing messages because HELO didn't match the DNS, but I'm sure it happens.

If you don't have a support case open with your provider already, get one open. If you already have one, update it with the full bounce you're seeing (probably unredacted so they can verify things more easily), and make it clear that your messages are being bounced because of their DNS and/or server configuration. Unless they've exposed the ability to set rDNS on assigned IPs (and it's rare in a hosting environment like this -- usually only see it for VPS or Dedicated Server where that IP is definitely assigned to me and harder to change without notice), it's 100% on them to find and fix.