1 (edited by monny999 2016-03-06 00:15:47)

Topic: [SOLVED]Amavisd-new DNS query timeout

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
Hi all!
I'm trying to set up the dkim record on my godaddy domain
I just take the output of "amavisd-new showkeys" and put it into the txt record (like this guide http://www.iredmail.org/docs/setup.dns.html)

When i try amavisd-new testkey a get this:

TESTING#1: dkim._domainkey.cemmedue.com      => invalid (public key: DNS query timeout for dkim._domainkey.cemmedue.com at /usr/share/perl5/Mail/DKIM/DNS.pm line 156.)

If i try dig -t txt dkim._domainkey.cemmedue.com i get:

;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32575
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dkim._domainkey.cemmedue.com.    IN    TXT

;; ANSWER SECTION:
dkim._domainkey.cemmedue.com. 1350 IN    TXT    "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUVRaQDNIziC70MM80cLpxqX87qu41SLbip9je3bGMoDh7MJjep0R3+DNcA52PdOUyR4EMwj58t9cROb/0gRMk/6Qe11hufHPpw+rKK2zn4aX9Yidhn0ZBnjFGVw/pmf8TqzNpi/jAtEgsVpCrf7vI35aV037qunBZ4mh0rqSxvwIDAQAB"

;; Query time: 59 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Mar  4 18:40:21 2016
;; MSG SIZE  rcvd: 286

If i try nslookup -type=txt dkim._domainkey.cemmedue.com i get

Server:        192.168.1.1
Address:    192.168.1.1#53

Non-authoritative answer:
dkim._domainkey.cemmedue.com    text = "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUVRaQDNIziC70MM80cLpxqX87qu41SLbip9je3bGMoDh7MJjep0R3+DNcA52PdOUyR4EMwj58t9cROb/0gRMk/6Qe11hufHPpw+rKK2zn4aX9Yidhn0ZBnjFGVw/pmf8TqzNpi/jAtEgsVpCrf7vI35aV037qunBZ4mh0rqSxvwIDAQAB"

Authoritative answers can be found from:



Where is the error???

Thank you

Ale

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED]Amavisd-new DNS query timeout

*) Do you have correct DNS server addresses in /etc/resolv.conf?
*) Does it work if you lookup the dns record manually with the first DNS server specified in /etc/resolv.conf? like this:

dig @xx.xx.xx.xx -t txt dkim._domainkey.cemmedue.com

Replace 'xx.xx.xx.xx' by the real DNS server address.

3

Re: [SOLVED]Amavisd-new DNS query timeout

ZhangHuangbin wrote:

*) Do you have correct DNS server addresses in /etc/resolv.conf?
*) Does it work if you lookup the dns record manually with the first DNS server specified in /etc/resolv.conf? like this:

dig @xx.xx.xx.xx -t txt dkim._domainkey.cemmedue.com

Replace 'xx.xx.xx.xx' by the real DNS server address.

Yes i have the correct dns (192.168.1.1)
if i try dig @192.168.1.1 -t txt dkim._domainkey.cemmedue.com i get:


; <<>> DiG 9.8.3-P1 <<>> @192.168.1.1 -t txt dkim._domainkey.cemmedue.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1906
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dkim._domainkey.cemmedue.com.    IN    TXT

;; ANSWER SECTION:
dkim._domainkey.cemmedue.com. 3600 IN    TXT    "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUVRaQDNIziC70MM80cLpxqX87qu41SLbip9je3bGMoDh7MJjep0R3+DNcA52PdOUyR4EMwj58t9cROb/0gRMk/6Qe11hufHPpw+rKK2zn4aX9Yidhn0ZBnjFGVw/pmf8TqzNpi/jAtEgsVpCrf7vI35aV037qunBZ4mh0rqSxvwIDAQAB"

;; Query time: 194 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Mar  5 17:04:34 2016
;; MSG SIZE  rcvd: 286

4

Re: [SOLVED]Amavisd-new DNS query timeout

monny999 wrote:
ZhangHuangbin wrote:

*) Do you have correct DNS server addresses in /etc/resolv.conf?
*) Does it work if you lookup the dns record manually with the first DNS server specified in /etc/resolv.conf? like this:

dig @xx.xx.xx.xx -t txt dkim._domainkey.cemmedue.com

Replace 'xx.xx.xx.xx' by the real DNS server address.

Yes i have the correct dns (192.168.1.1)
if i try dig @192.168.1.1 -t txt dkim._domainkey.cemmedue.com i get:


; <<>> DiG 9.8.3-P1 <<>> @192.168.1.1 -t txt dkim._domainkey.cemmedue.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1906
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dkim._domainkey.cemmedue.com.    IN    TXT

;; ANSWER SECTION:
dkim._domainkey.cemmedue.com. 3600 IN    TXT    "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUVRaQDNIziC70MM80cLpxqX87qu41SLbip9je3bGMoDh7MJjep0R3+DNcA52PdOUyR4EMwj58t9cROb/0gRMk/6Qe11hufHPpw+rKK2zn4aX9Yidhn0ZBnjFGVw/pmf8TqzNpi/jAtEgsVpCrf7vI35aV037qunBZ4mh0rqSxvwIDAQAB"

;; Query time: 194 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Mar  5 17:04:34 2016
;; MSG SIZE  rcvd: 286

Sorry i tried again amavisd test keys and it works
I think it was a domain's problem
Thank you

Ale