Je rencontre un problème avec OpenDKIM suite à l'ajout d'un second domaine sur un serveur mail. (Soit un "domaine1" avec un serveur mail, je voudrais ajouter le second domaine "domaine2" sur ce serveur mail.)
J'ai donc configuré Postfix en conséquence, renseigner les zones DNS sur domaine2, etc. J'ai testé la configuration et elle semble bonne (Sans OpenDKIM donc). Néanmoins, je me retrouve avec cette erreur après la reconfiguration d'OpenDKIM :
opendkim[16060]: KeyTable entry for 'mail._domainkey.domain2.tld' corrupt
opendkim[16060]: 2330F1C0C0B: error loading key 'mail._domainkey.domain2.tld'
Y'a t-il une syntaxe particulière à respecter sur le fichier KeyTable (et les autres peut-être) ?
cat KeyTable
mail._domainkey.domain1.tld domain1.tld:mail:/etc/opendkim/keys/domain1.tld/mail.private
mail._domainkey.domain2.tld domain2.tld:mail/etc/opendkim/keys/domain2.tld/mail.private
A l'envoi de mail, je me retrouve avec :
opendkim[16060]: KeyTable entry for 'mail._domainkey.domain2.tld' corrupt
opendkim[16060]: KeyTable entry for 'mail._domainkey.domain2.tld' corrupt
opendkim[16060]: 617B51C0C0A: error loading key 'mail._domainkey.domain2.tld'
opendkim[16060]: 617B51C0C0A: error loading key 'mail._domainkey.domain2.tld'
postfix/cleanup[16697]: 617B51C0C0A: milter-reject: END-OF-MESSAGE from poney.domain1.tld [4.4.4.4]: 4.7.1 Service unavailable - try again later; from=<bibi@domain2.tld> to=<contact@nsa.lol> proto=ESMTP helo=<webmail.domain1.tld>
Sachant que si je vérifie l'enregistrement DKIM sur http://dkimcore.org/c/keycheck, il me dit qu'il est correct... 🙁