DNS - Query failure. Treating as temporary failure. Query: 2

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
fmail
Normal user
Normal user
Posts: 159
Joined: 2009-01-02 18:21
Location: Denmark, Aarhus

DNS - Query failure. Treating as temporary failure. Query: 2

Post by fmail » 2013-02-09 23:33

Hi

HM:5.4b2012021601

In my log I have a lot of this error: DNS - Query failure. It look like it is message from PayPal, GMail, Yahoo, and so on...
Any explanation on this?

On all Domaing DKIM is NOT enabled!

I have enabled "DEBUG" only for diag.

Code: Select all

"SMTPD"	2228	0	"2013-02-09"	"TCP"	"DNS - Query failure. Treating as temporary failure. Query: 20120113._domainkey.gmail.com, Type: 16, DnsQuery return value: 1460."
"DEBUG"	2228	"2013-02-09"	"DKIM: Error when retrieving public key. Failed to do DNS/TXT lookup."
"DEBUG"	2228	"2013-02-09"	"DKIM: Retrieval of public key failed."
In the mail received from GMail the header look like:

Code: Select all

 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20120113;
 h=mime-version:x-received:date:message-id:subject:from:to
Then I conclude HM cant make a verifying og DKIM, but why?

All the errors is from mail with DKIM signature!

japi
New user
New user
Posts: 27
Joined: 2011-06-12 14:09
Location: Germany

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by japi » 2013-02-10 00:23

Hi,

I just tested it with gmail and have no problems:

Code: Select all

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=0Du[...]UYcA=; b=QWzi[...]TKb 7ZTg==

Code: Select all

"DEBUG"	8416	"2013-02-09 23:12:40.920"	"DKIM: Message passed validation."
"DEBUG"	8416	"2013-02-09 23:12:40.920"	"Spam test: SpamTestDKIM, Score: 0"
Seems like your DNS Server does not like TXT records.

Try setting your DNS Server to Googles public DNS (8.8.8.8 and 8.8.4.4) or OpenDNS (208.67.222.222 and 208.67.220.220).
(Instructions: http://windows.microsoft.com/en-US/wind ... P-settings )

Best regards,
japi

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by Bill48105 » 2013-02-10 00:25

hmail just does standard DNS queries asking Windows do to the lookup. If you get errors you should look at your DNS servers setup in Windows. Maybe you have a lame one.. I'd try different ones or do manual lookups using each from command line & see results.

Btw that error # has been around forever. For example:
http://www.hmailserver.com/forum/viewto ... 402#p42402
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

fmail
Normal user
Normal user
Posts: 159
Joined: 2009-01-02 18:21
Location: Denmark, Aarhus

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by fmail » 2013-02-10 14:22

Hi

Thanks for reply.

If @japi can get it running at GMail, I cant understand why I dont?
Can it something with version on HM or DNS server we use.
I use free DNS server "156.154.70.1" from http://www.neustar.biz/enterprise/dns-s ... ursive-dns I find it real fast and stable.

fmail
Normal user
Normal user
Posts: 159
Joined: 2009-01-02 18:21
Location: Denmark, Aarhus

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by fmail » 2013-02-10 15:37

Hi

This site http://dkimcore.org/tools/ can make a DKIM lookup.
I thin it is my DNS configuration there cause the problem, will try to change it to another DNS-server.

fmail
Normal user
Normal user
Posts: 159
Joined: 2009-01-02 18:21
Location: Denmark, Aarhus

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by fmail » 2013-02-13 09:40

Hi

Now I have made some test.

If entering local router as DNS then it fail to make the DKIM validation?
The workaround is: Enter the DNS server address directly at HM server! Then it make the validation without problem.

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by Bill48105 » 2013-02-13 17:09

hmail has no place for DNS server, it uses WINDOWS DNS. If you look back it was suggested you check & change your Windows DNS servers as you likely have a lame one. ;) If you have Windows set to use your router as DNS & you have issues then check DNS servers set on THAT or change Windows to use good DNS servers & not the router. ;)
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

fmail
Normal user
Normal user
Posts: 159
Joined: 2009-01-02 18:21
Location: Denmark, Aarhus

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by fmail » 2013-02-13 18:48

Yes exactly what i do. I entered the DNS directly in the win-server where HM run. Thats it :D

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: DNS - Query failure. Treating as temporary failure. Quer

Post by Bill48105 » 2013-02-13 18:57

fmail wrote:Yes exactly what i do. I entered the DNS directly in the win-server where HM run. Thats it :D
Glad you figured it out. DNS is a common issue people run into & often tough to troubleshoot as problem can be intermittent if just one of the many DNS servers they use isn't working right.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Post Reply