Solve DKIM issues

In DirectAdmin:

In /usr/local/directadmin/conf/directadmin.conf check or add: dkim=1
(you may remove the two domain key lines in the DNS inside DirectAdmin if already exist)

Retrieve code in DirectAdmin by subdomain (manually):
# cd /usr/local/directadmin/scripts
# ./
# ./

Identical result for a DNS and for a DNS of a sub domain in DirectAdmin:
_domainkey TXT “o=~”
x._domainkey TXT “v=DKIM1; k=rsa; p=…”

DNS on the name server for a domain and for a sub domain:
(subdomain resell2 is an example):
_domainkey TXT o=~
_domainkey.resell2 TXT o=~
x._domainkey TXT v=DKIM1; k=rsa; p=…
x._domainkey.resell2 TXT v=DKIM1; k=rsa; p=…

For www.:
Strict DKIM in DMARC setup with ‘adkim=s’
DKIM setup for www: ‘v=DKIM1; p=’

In order to avoid spaces, edit the key before pasting
Extra setup is in /etc/exim.dkim.conf