I just got a strange behavior, on a Debian (jessie) I got a lot of timeouts (5s each email) from (and only from) opendkim library.
The testkey output:
opendkim-testkey -vvv
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: key loaded from /etc/opendkim/newsletter.key
opendkim-testkey: checking key 'newsletter._domainkey.EXAMPLE.COM'
opendkim-testkey: 'newsletter._domainkey.newsletter.EXAMPLE.COM' query timed out
The same for external domains.
Solved adding the Nameservers parameter into /etc/opendkim.conf, but looks like the /etc/resolv.con get ignored!
Any idea why?
All other softwares (postfix for example) on the server behave correctly, so cannot be a problem of file syntax, file permission or like that
Or maybe there is a config option that I missed out (checked the documentation)