It looks as if the PHPMailer method DKIM_Sign is returning an empty string. Either openssl is not installed or the signing by openssl_sign() is failing.
found the solution,
in file PHPMailer.php correct format of private text string is:
public $DKIM_private_string = ‘-----BEGIN RSA PRIVATE KEY-----’.PHP_EOL.’+++your-private-key+++’.PHP_EOL.’-----END RSA PRIVATE KEY-----’.PHP_EOL;
Hello.
I’m interested to know how you configured, because I also have another system that works with DKIM but when I configure phplist with the same settings, phplist doesn’t send anything anymore.
Here are my parameters in /lists/admin/PHPMailer/class.phpmailer.php :
[‘dkim’][‘selector’] = ‘s1’; -> public $DKIM_selector
[‘domain’] = ‘domain.com’; -> public $DKIM_domain
[‘privkey’] = ‘/home/clients/blablablabla/s1.domain.com.pem’; -> public $DKIM_private
I don’t understand what I’m doing wrong.
Could you help me, please?
Regards.
I edit the file PHPMailer6/src/PHPMailer.php directly.
like this:
public $DKIM_selector = ‘selector sting’;
public $DKIM_identity = ‘@domain.com’;
public $DKIM_passphrase = ‘’;
public $DKIM_domain = ‘domain.com’;
public $DKIM_copyHeaderFields = false;
public $DKIM_extraHeaders = [];
public $DKIM_private = ‘’;
public $DKIM_private_string = ‘-----BEGIN RSA PRIVATE
KEY-----’.PHP_EOL.’###KEYVALUE no crlf###’.PHP_EOL.’-----END RSA PRIVATE
KEY-----’.PHP_EOL;
Alternatively you set in $DKIM_private the path to the key file and
$DKIM_private_string keeps empty.
Everything mentioned above is not very wise, as you have to change the
file every time after an update.
I’d recommend the developers of phplist to integrate this DKIM variables
into config.php as standard.
Thank you very much!
I did this and it’s better because the message is sent without error but without DKIM signature either
And I don’t understand why and I don’t understand how to do…
Thank you very much.
I cannot see in source code, because no mail is sent, I only have this message when I test sending a newsletter :
Le message de test a été envoyé à: alainrxxxx@xxxxxxx.xxx Échec
and no mail is sent.
I have the same message when I parameter in /lists/admin/PHPMailer/class.phpmailer.php
And when I edit the file PHPMailer6/src/PHPMailer.php directly, I can send a newsletter test, but I cannot see DKIM-Signature in the source code of the received mail…