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

Skip to content

Commit b684d40

Browse files
committed
Ignoring X-Transport header while signing email with DKIM
1 parent a78ada5 commit b684d40

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)