On Wed, Jul 31, 2024 at 01:10:46PM -0400, Wietse Venema via Postfix-users wrote:
> > > Now I tried to redirect mails from my private address sent to anybody > > > at charite.de to be redirected to someone else in the organisation, > > > like this: > > > > > > rxlf.hildebra...@gmail.com REDIRECT toscx.hrn...@charite.de > > Added to the text for REDIRECT actions: > > Note 2: a REDIRECT address is subject to canonicalization (add > missing domain) but NOT subject to canonical, masquerade, bcc, > or virtual alias mapping. > > Note the difference with automatic BCC recipients. The reason for > this difference is not obvious because it is purely technical. > > The excluded mappings are in the code path that generates ordinary > recipient records, and the REDIRECT address is not in an ordinary > recipient record. > > This could be fixed (reuse the code path) but it is a rare edge case. > It would open the possibiliy to redirect to multiple recipients. Address rewriting of course happens in cleanup, while REDIRECT actions are processed in qmgr(8), and is much simpler when it is just one explicit address. Making REDIRECT match naïve user expectations, means new rewriting of REDIRECT in cleanup(8) potentially yielding multiple REDIRECT recipients. And new logic in qmgr(8) to handle multiple redirect recipients. And of course, we'd probably still want the last "REDIRECT" access(5) action to replace any prior redirects, rather than append to a list, which probably means buffering the REDIRECT recipient util EOM, and sending just that last one to cleanup(8) as one of the post-message envelope records. A non-trivial change, but perhaps something that most users would reasonably expect? -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org