Page 1 of 1

Sending email with DKIM

Posted: 14 Oct 2017, 22:06
by yaddran
I have to admit that I am a bit confused why support for DKIM is STILL not added. I am patching this for years. PHPMailer supports it for years now. Still every time I want to upgrade I need to patch it again. Yes, it is just a few copy/pastes but it would be really nice not to have to do it at all. It is so simple...

Just add few global configs in config_inc.php

Code: Select all

$g_DKIM_domain = 'example.com';
$g_DKIM_private = 'path/to/priv/key';
$g_DKIM_selector = 'mail.example;
$g_DKIM_passphrase = '';
$g_DKIM_identity = 'bt@example.com';
and patch email_send function in email_api.php:

Code: Select all

if ( !is_blank( config_get( 'DKIM_domain' ) ) ) {
    $t_mail->DKIM_domain = config_get( 'DKIM_domain' );
    $t_mail->DKIM_private = config_get( 'DKIM_private' );
    $t_mail->DKIM_selector = config_get( 'DKIM_selector' );
    $t_mail->DKIM_passphrase = config_get( 'DKIM_passphrase' );
    $t_mail->DKIM_identity = config_get( 'DKIM_identity' );
}
Is there a reason why this is not in yet?

Re: Sending email with DKIM

Posted: 15 Oct 2017, 08:54
by atrol
yaddran wrote:Is there a reason why this is not in yet?
I searched this forum and our tracker https://www.mantisbt.org/bugs for "DKIM": No search result.
So the answer to your question seems to be quite simple: Because no one requested it.

If you want it in standard Mantis, just
- open a feature request at https://www.mantisbt.org/bugs
- send as a Pull Request at https://github.com/mantisbt/mantisbt

Re: Sending email with DKIM

Posted: 18 Oct 2017, 18:48
by atrol