Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75ace35

Browse files
committed
bug #42659 Ignoring X-Transport header while signing email with DKIM (metaer)
This PR was merged into the 5.3 branch. Discussion ---------- Ignoring X-Transport header while signing email with DKIM | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Related PR | symfony/symfony-docs#15603 | License | MIT Earlier `@fabpot` wrote in symfony/symfony-docs#15603 (comment): > Anyway, this should be fixed in the code, not in the docs. **Original problem** If we have multiple transports and use one of them, signature will contain X-Transport header by default. But email will not: https://github.com/symfony/symfony/blob/810599d2f0fd19558d140c19bc50eb4dc0021a2e/src/Symfony/Component/Mailer/Transport/Transports.php#L56 And signature will be invalid. Commits ------- b684d40 Ignoring X-Transport header while signing email with DKIM
2 parents a78ada5 + b684d40 commit 75ace35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Mime/Crypto/DkimSigner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function sign(Message $message, array $options = []): Message
6868
throw new InvalidArgumentException('Invalid DKIM signing algorithm "%s".', $options['algorithm']);
6969
}
7070
$headersToIgnore['return-path'] = true;
71+
$headersToIgnore['x-transport'] = true;
7172
foreach ($options['headers_to_ignore'] as $name) {
7273
$headersToIgnore[strtolower($name)] = true;
7374
}

0 commit comments

Comments
 (0)