Skip to content

Commit

Permalink
Merge pull request #8454 from frederic34/patch-2
Browse files Browse the repository at this point in the history
ignore Return-Path in dkim sign with swiftmailer
  • Loading branch information
eldy committed Mar 27, 2018
2 parents 6eca679 + 1071ec7 commit 6b47df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/CMailFile.class.php
Expand Up @@ -753,7 +753,7 @@ function sendfile()
$domainName = $conf->global->MAIN_MAIL_EMAIL_DKIM_DOMAIN;
$selector = $conf->global->MAIN_MAIL_EMAIL_DKIM_SELECTOR;
$signer = new Swift_Signers_DKIMSigner($privateKey, $domainName, $selector);
$this->message->attachSigner($signer);
$this->message->attachSigner($signer->ignoreHeader('Return-Path'));
}

if (! empty($conf->global->MAIN_MAIL_DEBUG)) {
Expand Down

0 comments on commit 6b47df6

Please sign in to comment.