Here is the SOURCE code for the DKIM Plugin:
<?php
class DKIMplugin extends phplistPlugin
{
public $name = ‘DKIM Plugin’;
public $authors = ‘Duncan Cameron’;
public $enabled = 1;
public $version = ‘1.00’;
public $description = ‘Adds the DKIM/Private Key to outgoing messages’;
public function messageHeaders($phpmailer)
{
$phpmailer->DKIM_selector = 'default';
$phpmailer->DKIM_identity = 'username@mydomain.com';
$phpmailer->DKIM_passphrase = '';
$phpmailer->DKIM_domain = 'mydomain.com';
$phpmailer->DKIM_copyHeaderFields = true;
$phpmailer->DKIM_extraHeaders = [];
$phpmailer->DKIM_private = '';
$phpmailer->DKIM_private_string = <<< 'KEYALL'
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAxJiQvSM2YHQH5vI7C6f254aUyp/fWV6rYY5/+1T61+e4YFR+
(INCLUDE THE FULL PRIVATE KEY IN HERE)
1PgylUF3j4LKd531+Uq+aEp4xGFFTaGeT/lx5RvCUjvId7vM7Zh5
-----END RSA PRIVATE KEY-----
KEYALL;
return array();
}
}
Build this into a file called: DKIMplugin.php
Use your own SELECTOR and EMAIL ADDRESS and DOMAIN.
Place that file into the ADMIN folder under LISTS (or whatever you named yours)
Now, check to make sure the plugin is ACTIVE and SUCCESS!!
Hope someone else finds this helpful …
Doug