I try to set up a mail server on Debian with opendkim and opendmarc
When I receive an email, SpamAssassin refuse it because opendkim can't do the DNS query
I tested with opendkim-testkey command, the DNS query is timed out :
$ opendkim-testkey -s 20161025 -d gmail.com -vvv
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key '20161025._domainkey.gmail.com'
opendkim-testkey: '20161025._domainkey.gmail.com' query timed out
I tried to do the DNS query with dig on the server, with success
$ dig txt 20161025._domainkey.gmail.com
;; ANSWER SECTION: 20161025._domainkey.gmail.com. 282 IN TXT "k=rsa; p=MIIB[...]AB"
By reading other posts, I try to add a Nameservers, but it changes nothing at all
As anyone an idea?