Community

Axigen DKim invalid

I have configure Axigen with DKIM signature with documentation this https://www.axigen.com/documentation/domainkeys-dkim-p3277108

Mails are well sent with a DKIM key but this one seems invalid

My DNS is configure

ns325918:~# dig +short txt 2019._domainkey.afae.fr @8.8.8.8
"v=DKIM1\; k=rsa\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5HQKzmCSsT2zCnjNOalpBcN8tTSR1unT3ud3lvVLvX09R0oLaIFyjDVCdm76Uk5wGe3uD0Hil7D3ITEvWIJ5WI73oT2cYC8LT6Q5K+y8ai/w5q0WBjkxfXcRNcaEPyfLG//mQSD8murbOl1vM/e2dCYR1uj31L5SjsK0DG+6pxr1hDOhcTxKNaTrNA0rSIvDG" "FptK9YiPmSCOBLipPSXX/EocDZ8QUOizUqMlDJqWUeOgrN0oNrjJ8fqH1RldfQN3oSOfRdk77g7mChfD/OIlunLeDLAFJukw1WipLukoc6sWjIPm42NjKh7T6BVuyNlWx0n6CVl+B7ahI6EPlnD9QIDAQAB"
ns325918:~#

Please can you help me ?

My Axigen configuration

Hello
At first please correct your key. I see some spaces in your key.
please place the output value of bellow command to your "2019._domainkey.afae.fr " record:

grep -v ^- key.public | perl -e ‘while(<>){chop;$l.=$_;}print “t=y; p=$l;\n”;’

note: please replace the “key.public” with your public key file name.

Second please change the value of “DK Key Path” and “DKIM Key Path” to point to address of private key.
for example I put my private key to axigen directory and set those value to : “/var/opt/axigen/private.key”

finaly use https://dkimvalidator.com and GMail to check.

Hi,

Spaces on “2019.domainkey.afae.fr” record : OK
Paths with /var/opt/axigen/ : OK
Test on https://dkimvalidator.com : KO

0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid

:frowning:

Does anyone know why my Test is wrong?

Hello Florian,

Most probably not related but please check your DomainSign-afae_fr rule so the conditions are set to match ALL and not ANY of the conditions below.

HTH,
Ioan

image

it doesn’t work :frowning:

result = fail
Details: bad RSA signature