Page 1 of 1

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

Posted: 2013-02-09 23:33
by fmail
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!

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

Posted: 2013-02-10 00:23
by japi
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

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

Posted: 2013-02-10 00:25
by Bill48105
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

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

Posted: 2013-02-10 14:22
by fmail
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.

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

Posted: 2013-02-10 15:37
by fmail
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.

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

Posted: 2013-02-13 09:40
by fmail
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.

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

Posted: 2013-02-13 17:09
by Bill48105
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

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

Posted: 2013-02-13 18:48
by fmail
Yes exactly what i do. I entered the DNS directly in the win-server where HM run. Thats it :D

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

Posted: 2013-02-13 18:57
by Bill48105
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