postal icon indicating copy to clipboard operation
postal copied to clipboard

Can't verify domain

Open navinp opened this issue 7 years ago • 7 comments

  • Adds new organization
  • Goes to Domains > Add your first domain
  • Adds domain (Verify method: DNS)

Goes to adding the records:

Hostname: postal-verification Value: Ax4JgRsbxF9fLj7ExhYzzoNBkFdPiLHi

  • Goes back to Postal, tries to verify the domain, hits Verify TXT record:

We couldn't verify your domain. Please double check you've added the TXT record correctly.

What am I doing wrong here, or is there anything wrong with my steps? Or with my install?

navinp avatar Oct 16 '19 22:10 navinp

You can use whatsmydns.net to verify that the record is available worldwide and the dig command on your server to see that your server can see the record also.

willpower232 avatar Oct 17 '19 08:10 willpower232

I tried to check the txt for postal-verification.domain.com:

  • whatsmydns.net
  • https://toolbox.googleapps.com/apps/dig/#TXT/

Both cases it did find the txt record

I tried the dig command:

dig -t txt postal-verification.domain.com

It did find the txt record

I tried verifying again in Postal, it still says it cannot verify.

navinp avatar Oct 17 '19 12:10 navinp

It still isn't able to verify the domains, even though the TXT records are recognized when testing with online tools such as whatsmydns

Any suggestions?

navinp avatar Oct 18 '19 13:10 navinp

Make sure in your dns settings that you don’t have any extra white space or something off. Who are you using for dns?

DTS-Mike avatar Oct 20 '19 02:10 DTS-Mike

My server is hosted at DigitalOcean. I checked for white space, didn’t find any.

What could be off btw?

  • when I check this with Linux command on the same server, it does show the txt record
  • when I check using whatsmydns it does show the txt record

navinp avatar Oct 20 '19 02:10 navinp

Ah it seems we've all misunderstood based on https://github.com/atech/postal/blob/master/app/models/domain/dns_verification.rb

The record should be on the same domain as you have in Postal, i.e. example.com, not postal-verification.example.com, and the value should be postal-verification yourverificationstringhere.

willpower232 avatar Oct 25 '19 14:10 willpower232

I had a problem similar to this. It turned out that I had created the DNS records with my domain provider, but I had my nameservers pointing to a different hosting provider (from a previous version of the website), where there was a different set of records set up. So the records I created with the domain provider weren't actually accessible through the domain name until I restored the nameservers to default.

chriscarrollsmith avatar May 25 '23 15:05 chriscarrollsmith