emailwiz icon indicating copy to clipboard operation
emailwiz copied to clipboard

PTR Records

Open SlidingHorn opened this issue 3 years ago • 3 comments

I have my email set up on a Vultr VPS. In my settings, as instructed in the README, I have the Reverse DNS set to mydomain.com (obviously my actual domain). However, when I check on mxtoolbox, it tells me it is not a valid hostname.

I'm not sure where I went wrong here, but I cannot send email to gmail users from this account until I'm able to fix it, as they get rejected for not having a PTR record set up.

Would greatly appreciate any help I can get here.

SlidingHorn avatar Sep 05 '22 13:09 SlidingHorn

Do you get "Reverse DNS is not a Valid Hostname" from mxlookup? So do I, I'm pretty sure it is because it tries to check if your IP address resolves to mail.domain.com instead of domain.com. That doesn't matter, it should work anyway.

Did you try dig -x <your-ip> just to see if you get your domain name? Also, are you sure that gmail rejects you because of your PTR record?

william-stacken avatar Sep 11 '22 13:09 william-stacken

Do you get "Reverse DNS is not a Valid Hostname" from mxlookup?

Yes.

Did you try `dig -x

gives back my domain (not mail.)

are you sure that gmail rejects you because of your PTR record?

That's what the messages I get back from them say:

The IP address sending this 550-5.7.25 message does not have a PTR record setup, or the corresponding 550-5.7.25 forward DNS entry does not point to the sending IP. As a policy, 550-5.7.25 Gmail does not accept messages from IPs with missing PTR records.

SlidingHorn avatar Sep 12 '22 22:09 SlidingHorn

Just to make sure, your forward DNS points to just your IP address right? Could there be a NAT or firewall or something that updates the public IP address? What do you get if you run curl ifconfig.me on the server?

william-stacken avatar Sep 15 '22 13:09 william-stacken

I don't understand any of what you just asked.

SlidingHorn avatar Sep 20 '22 07:09 SlidingHorn

What do you get if you run curl ifconfig.me on the server?

It returns the same IP address I have the domain pointed to....sorry for the delay on that response.

SlidingHorn avatar Oct 04 '22 18:10 SlidingHorn

I'm having the same issue. Any resolve? I get the correct ip address as well. I tried reinstalling the script. I thought it might of been an issue with port 25 being block however, it was not blocked. My reverse DNS is pointed to my url. I'm pretty new to email so I hope I'm not missing something simple.

I've also used telnet to test making an email. I keep getting 450 4.7.1 Client host rejected: cannot find your reverse hostname. However on my VPS. I've set the revese dns (both ipv4 and 6) to my domain name.

fishnibble avatar Oct 13 '22 11:10 fishnibble

@fishnibble nothing so far =/

SlidingHorn avatar Oct 23 '22 03:10 SlidingHorn

Same issue checking mail-tester.com it seems to be an issue relating to MX records

I get a total score of 6.8/10 https://www.mail-tester.com/test-9mkick825

10leej avatar Nov 09 '22 23:11 10leej

I got the same error. Fixed it by adding a AAAA record on my DNS settings, with my VPS' IPv6 address as the answer. This is apparently a really vague error message from Google though, as I've seen multiple different solutions on the internet.

DashDashDashDashDash avatar Dec 19 '22 20:12 DashDashDashDashDash

I got the same error. Fixed it by adding a AAAA record on my DNS settings, with my VPS' IPv6 address as the answer. This is apparently a really vague error message from Google though, as I've seen multiple different solutions on the internet.

I already have a AAAA record for my IPv6 address in my DNS settings, so that's not the cause.

SlidingHorn avatar Dec 21 '22 19:12 SlidingHorn

Was there an update that fixed this issue @LukeSmithxyz?

SlidingHorn avatar Feb 01 '23 02:02 SlidingHorn