Sending email with DKIM

General discussion of Mantis.

Moderators: Contributor, Developer

Sending email with DKIM

Postby yaddran » Oct 14, 2017 5:06 pm

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?
yaddran
 
Posts: 1
Joined: Oct 14, 2017 4:52 pm

Re: Sending email with DKIM

Postby atrol » Oct 15, 2017 3:54 am

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
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Sending email with DKIM

Postby atrol » Oct 18, 2017 1:48 pm

Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests