On 11/8/2010 5:43 AM, Martin Bley wrote:
Dear List,
another questin regarding rewrite rules. I want postfix to rewrite the
To: Header based on envelope to:
1st, I changed the parameter
local_header_rewrite_clients = permit_mynetworks
to do rewriting for all my local clients. In my understanding, the
rewrite will then only be done, if the sending client is in mynetworks
AND the To: header has no value (there is no To: Header). To accomplish
that, I use a header_checks rule like
/^To:.*...@bvl.bund.de.*/i IGNORE
to remove the To: Header on the matching e-mail address. Unfortulately I
had no luck with this. The header will not be rewritten as wanted.
The To: header is not a required header, and won't be added.
You'll need some milter or content_filter to rewrite the To:
header.
Any hints?
Thanks,
Martin