Re: [exim] forwarding *@domain to one person

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: Robert Van Horn
CC: exim-users
Subject: Re: [exim] forwarding *@domain to one person
Quoting Robert Van Horn:

> The mail server handles a hundred or so domains.
> Some users are aliased in the aliases file and some are
> cyrus users. The owner of the company wants *@thisdomain
> to be forwarded to him. Aside from I don't like this very
> much - I don't have a good idea about how to do it.


That depends how you do your local routing.
You can do it e.g. with a aliases file by using the lsearch@* lookup
type, e.g.

virtual_redirect:
driver = redirect
data = ${lookup {$local_part@$domain} \
lsearch*@ {/path/to/aliases}}

and have this in /path/to/aliases:

*@example.com: someuser@???


There's much room for optimisation, of course...