This doesn't seem like a job for address rewriting. I just use a catch all router at the end with specific conditions.
I have a very old setup that will catch all crap sent to a domain I specify in a directory. I should have changed this ages ago into something more useful, but not many people use a catch all so it's not something I want to change. Anyway, If I have a domain I want to catch all on, I "touch /etc/exim/catchalladdress/<domain to catch>" and then this router sitting at the bottom of my routers does the rest: # last router before default reject catchall: driver = redirect domains = dsearch;/etc/exim/catchalladdress data = catch...@$domain cannot_route_message = Unknown user .. well, except that I also add an alias on that domain called "catchall" which redirects itself to whatever account you want, OR just create an account called catchall that collects everything. If you want, you can keep the original recipients by adding them as a header. I only run a catch all so I can make up email addresses on the fly on a spam/bacon trap only domain. Very useful for tagging which site which addresses were entered into. Other than that, they're evil. -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
