Author: Andre van der Walt Date: To: exim-users Subject: Re: [Exim] Alias one domain to another
> Philip Hazel wrote: >
> > On Wed, 10 Sep 2003, Laura Proseilo (List Account) wrote:
> >
> >>I'm trying to sort out how to alias an entire domain onto another domain
> >>with Exim, so that any addresses added to domain1 are automatically aliased > >>to domain2. Right now, the only way seems to manually alias individual
> >>email address, and as we have several hundred accounts with one to four
> >>domains to alias on to each, this is a real pain.
> >>
> >>We were able to do this in the past quite easily on EIMS on mac, so I'm
> >>hopeing Exim 4.20 has the same capability.
> >
> > alias_dom1_to_dom2:
> > driver = redirect
> > domains = dom1
> > data = $local_part@dom2
>
> Exim manual, 11.8. Expansion variables:
>
> If you use $local_part to create another address, you should always wrap it > inside a quoting operator. For example, in a redirect router you could have: >
> data = ${quote:$local_part}@???
How would you be able to do this in a database enviroment and how would you
structure your query + your layout of the database table??