Author: Ted Cooper Date: To: exim-users Subject: Re: [exim] Query on address rewriting - can it be done in an ACL?
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 = catchall@$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.