Comment envoyer un email avec Phpmailer avec DKIM-signature?

J'utilise PHPmailer pour envoyer du courrier électronique.

J'ai installé postfix service et DKIM-Milter pour générer la clé.

Il fonctionne très bien si j'utilise la ligne de commande pour envoi de mail, et le courrier est avec DKIM-signature de l'affichage "signed-by:mydomain.com"

Authentication-Results: mx.google.com; spf=pass (google.com: domain of root@mydomain.com designates 182.50.xxx.xxx as permitted sender) smtp.mail=root@mydomain.com; dkim=pass header.i=@mydomain.com

DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mydomain.com; s=default;
    t=1325531456; bh=+gZFhu4Id2AXb8UVbFLzDVVlChWGhvxvJUIdjdMLQsk=;
    h=To:Subject:Message-Id:Date:From;
    b=mH4GV8ayicc6UMn1uopCc9VJb5v2MiOKQpEtwJjckzoJ8ePhRKQIZI5KnzSdSoSP3
     BtmehOQhMn9kIR/TlL2dlSog2EkRNeAaWcmO1K3khtCZ7rkXHGJsDn9C6l49K0tJa2
     rplPOSI7wS8+3NCEiuc5sjZimPo4v9WuTECVqxkg=

Mais je veux l'utiliser PHPmailer (5.1) à envoyé un mail avec signature DKIM pris en charge, mais renvoie à ceci:

Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@mydomain.com designates 182.50.xxx.xxx as permitted sender) smtp.mail=info@mydomain.com; dkim=neutral (bad format) header.i=info@mydomain.com

DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; l=70; s=default;
    t=1325533594; c=relaxed/simple;
    h=From:To:Subject;
    d=mydomain.com; i=@mydomain.com;
    z=
    |
    |Subject:=20Testing=20email=20from=20phpmailer;
    bh=lC+16EvauA2HuJG03ArE6CtgLuY=;
    b=

J'ai vérifié le class.phpmailer.php fichier, et il a quelques DKIM options:

  public $DKIM_selector   = 'default';

  /**
   * Used with DKIM DNS Resource Record
   * optional, in format of email address '[email protected]'
   * @var string
   */
  public $DKIM_identity   = '';

  /**
   * Used with DKIM DNS Resource Record
   * optional, in format of email address '[email protected]'
   * @var string
   */
  public $DKIM_domain     = '';

  /**
   * Used with DKIM DNS Resource Record
   * optional, in format of email address '[email protected]'
   * @var string
   */
  public $DKIM_private    = '';

Comment configurer cette option? Je sais que la clé publique et la clé privée, mais ce qui est est de $DKIM_private et $DKIM_identity?

Depuis qu'ils sont en option, vous peut-être n'en avez pas besoin?
Si vous voulez envoyé un mail avec signature DKIM, ils sont must-have.

OriginalL'auteur Angolao | 2012-01-02