phpmailer don't put in header DKIM informations

2k views Asked by At

I'm working to put DKIM signature in the emails sent with a small crm I've created. I've insert the public key in the text record of my domain and now I'm working to put private key in phpmailer when I'm sending a email. I used the example inside the class:

$mail->DKIM_domain = 'example.com';
$mail->DKIM_private = 'path/to/private.key';
$mail->DKIM_selector = 'phpmailer';
$mail->DKIM_passphrase = '';
$mail->DKIM_identity = $mail->From;

when I send the mail gmail says my dkim signature is PASS. If i test the mail sending it at [email protected] I recieve:

---------------------------------------------------------- DKIM check details: ---------------------------------------------------------- Result: permerror (hash algorithm used in signature (sha256) ID(s) verified: not

1

There are 1 answers

1
Suad Halilović On

Hello did you try https://www.port25.com/authentication-checker/ and paste output when you test it.

Also I had similiar problems and this answer helped me How to send email with Phpmailer with DKIM signature?

You might try it also