I have built a Spam filter based on this RECIPE
Since then my requirements have changed and would like to know how to route mail in Postfix based on the recipient email address. Some users now belong to a new domain and are hosted on another mail server but I do not want to lose mail that is sent to their old address.
So if I receive:
- email@example.com it forward to the old mail server with the same address
- firstname.lastname@example.org it forward to email@example.com
- firstname.lastname@example.org it drops without NDR because it is not listed in "relay_recipient_maps"
When I tried to simply add the following to /etc/postfix/virtual the test message seemed to just get lost somewhere. I have no clue where it went or how to check where it went...
Many thanks for any pointers.