[exim-dev] [Bug 1323] $sender_address still points to the or…

Góra strony
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 1323] $sender_address still points to the original sender after issuing 'mail' command in a filter
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1323




--- Comment #1 from Phil Pennock <pdp@???> 2012-12-16 10:36:41 ---
$sender_address is the address as _received_. There are two options for
messages generated by a "mail" filter command:

1. Use the original message's $sender_address
2. Use the same as the $return_path, ie what is sent on the wire: this is <>,
or empty

DKIM-signing based on the envelope sender, for an empty envelope sender, is
broken, and conceptually I can only see $sender_address being one of these two
values. We should not add a case where $sender_address is _not_ what was
received _and_ is _not_ the same as the SMTP envelope sender being sent, but is
something faked from a From: header.

My understanding is that the DKIM spec folks argue that the signing domain
should be the domain visible in From: or the like, not the envelope domain,
because the From: domain is what people normally see.

This argues that you should be using:

${reduce{${addresses:$h_from:}}{}{$item}}

as the lookup key.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email