On Sun, Nov 06, 2022 at 07:55:34PM +0100, Matus UHLAR - fantomas wrote:
> Hello,
> 
> >Viktor Dukhovni:
> >> I don't recall whether milter message content processing happens before
> >> or after canonical rewriting, Wietse might post a reminder.  If milters
> >> go first, you'll need to do DKIM signing after the message first goes
> >> through a null content filter (directly back into Postfix on a different
> >> port, with nothing in the middle), with milters only on the far side and
> >> the canonical rewrites on the near side.
> 
> On 03.11.22 19:42, Wietse Venema wrote:
> >Postfix rewrites headers and envelopes before storing the message
> >in a queue file. Then, Milters can make changes, where each Milter
> >sees the result of changes made by its predecessor.
> 
> I have implemented SRS via postsrsd and my observation says that while 
> envelope sender is changed by canonical_maps and the new sender is logged, 
> existing milters only see old sender.
> 
> Perhaps I'm doing something wrong?

No, nothing wrong.  Header rewriting happens in cleanup(8), and the
milter will see the rewritten *headers*, but the envelope is sent to the
milter during the SMTP dialogue, so the envelope addresses passed to the
milter will be the original addresses, before canonical rewriting.

-- 
    Viktor.

Reply via email to