Matus UHLAR - fantomas:
> >Matus UHLAR - fantomas:
> >> If there's no way to do this now, I'll have to search for one.
>
> On 24.05.22 09:43, Wietse Venema wrote:
> >There is a way to do this, and that involves using a Milter (or any
> >kind of content filter). Postfix does not implement every possible
> >edge case.
>
> I probably should have said that there's no way to do this now using postfix
> configuration, which was subject of my initial question.
>
> Of course much can be done using milters, but without available milters
> people need to build their owns, which is more work than just configuring
> (another instance of) postfix.
>
> as I understand it, if header rewriting is enabled, the canonical(5)
> rewrites compiled-in list of headers:
You'll see an identical same list in Sendmail source code. Sendmail
uses different rulesets for sender and recipient address canonicalization.
For compatibility, Postfix implements that behavior rewriting with
sender_canonical_maps and recipient_canonical_maps.
In a prevuious life I wrote a sendmail.cf generator script. It
escaped, and I started getting support questions from much of Europe.
So I knew what was needed to make Postfix adoption easy at a time
that address rewriting was the norm, not the exception.
As mentioned before, if you want to rewrite your own subset of
headers, then use a Milter or other content inspection system.
Wietse