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:
sender headers:
Disposition-Notification-To
Errors-To
From
Mail-Followup-To
Reply-To
Resent-From
Resent-Sender
Return-Path
Return-Receipt-To
Sender
recipient headers:
Bcc
Cc
Resent-Bcc
Resent-Cc
Resent-To
To
so even unwanted headers may get rewritten if I enable header rewriting.
...returning to my original problem, I was hoping to rewrite From: header using
two chained postfix instances:
1. rewriting envelope from by using postsrs
- this instance is needed because canonical maps are processed at input
2. using vrfydmn milter that compares envelope and header From:
- this instance is needed because milters in the first instance are
processed before canonical maps are processed
vrfydmn milter which unfortunately does not work at least with my
configuration
- python3
- list of local domains in file
https://github.com/croessner/vrfydmn/issues/4
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Eagles may soar, but weasels don't get sucked into jet engines.