I us the latest version of phpmailer class, and want to send mails by dkim signature, this class is provide it. but in received mail's dkim is hardfail. I created keys and put dns record. i have done online dns record test, its ok.
how to solved this problem?
the example of code is:
<?php
$mail->DKIM_domain = "my-domain.us";
$mail->DKIM_private = "url/.htkeyprivate";
$mail->DKIM_passphrase = "password";
$mail->DKIM_selector = 'phpmailer';
$mail->Sender = "no-reply@my-domain.us";
$mail->From = "my-domain.us";
$mail->FromName = "my-domain";
$mail->AddAddress("toexample@gmail.com", "receiver");
$mail->Subject = "Hello";
$mail->Body = "Hello World";
$mail->Send();
?>
Result: Authentication-Results: mx.google.com; spf=neutral (google.com: 92.43.143.174 is neither permitted nor denied by best guess record for domain of apache@devserv) smtp.mail=apache@devserv; dkim=hardfail header.i=@find-love.us
DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; l=5; s=phpmailer; t=1349788282 c=relaxed/simple; h=From:To:Subject; d=my-domain.us; z=From:=my-domain=20 | |Subject:=20Hello; bh=CcbQDrWvT4E847f1X4iutz2u/CY=; b=3m/CXrO6xNxoVSx0P1zXjhNy4QwGrixv0//C8RgoNBUdS2kX8Evqlj3qZbWmZUQnJfc/u83Oi5r58UXueyx4sA==