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. Any hints? Thanks, Martin