Re: [Exim] %1@domain.com forwarding

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Mike Meredith
CC: exim-users
Assumpte: Re: [Exim] %1@domain.com forwarding
On Wed, 30 Jun 2004, Mike Meredith wrote:

> I don't think you need anything anywhere near as complicated ... just have
> entries in your alias file along the lines of :-
>
> *:    ${local_part}@???


If all you want to do is route x@domain1 to x@domain2, where x is the
same, and you are using mysql for the data, all you need is

router:
  driver = redirect
  data = ${lookup mysql {some query that uses $domain and which returns \
                         the new domain as its result} \
              {$local_part@$value}}


If the lookup fails to find the domain, the value of data is empty, and
the router declines.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book