Axigen DKim invalid

I have configure Axigen with DKIM signature with documentation this

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

My DNS is configure

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

Please can you help me ?

My Axigen configuration

At first please correct your key. I see some spaces in your key.
please place the output value of bellow command to your " " 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 and GMail to check.


Spaces on “” record : OK
Paths with /var/opt/axigen/ : OK
Test on : KO

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


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.



it doesn’t work :frowning:

result = fail
Details: bad RSA signature