In postfix I want to create a (so to speak) rewrite rule to rewrite the "mail from" - field matching one specific from-address "[email protected]" to "[email protected]" (for use with aol smarthost), if (as a condition) the "To"-field matches *@aol.com"
I must do that, because aol denies to use another "mail-from"-address than the real registered account ...
is that possible maybe via header_checks?
This should do it.
Also, you don't need to postmap regexp files.