I'm looking for a postfix configuration to create recipient rewrite rules based on the recipient domain name including catch all for domains not found in the "not rewrite"-list. For example:
laber@example.com
, no rewrite and deliver to MX of example.comfoo@bar.com
, rewrite tofoo@spam.example.com
<user>@<domain>
, rewrite to<user>@spam.example.com
Ideal would be a list of domains which should not be rewritten via Postfix. For now I using a setup without the exception so everything is rewritten:
recipient_canonical_maps = static:@spam.example.com