RE: [Exim] 3.x -> 4.x conversion problem.

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Jan Johansson
CC: exim-users
Assunto: RE: [Exim] 3.x -> 4.x conversion problem.
On Tue, 26 Feb 2002, Jan Johansson wrote:

> test@??? spamfilter2@??? animal.mupp.net (If to: is test@???, set new address to spamfilter2@???, and deliver to animal.mupp.net)
>
> test2@??? test2@??? waldorf.mupp.net (If to: is test2@???, dont change the to: header, and deliver to waldorf.mupp.net)


Easiest is to split that into two files:

1. A file with the rewriting:

     test@???  spamfilter2@???
     test2@??? test2@???


2. A file with the routing

     spamfilter2@???  animal@???
     test2@???        waldorf@???


Of course, you can generate these from a single master file such as you
have above. Or stick the data in a database that allows you to do
lookups on different fields.

# This router does the rewrite, and passes to the r2 router
r1:
driver = redirect
domains = mupp.net
data = ${lookup{$local_part}lsearch{/the/rewrite/file}}
redirect_router = r2

# This router routes to the host.

r2:
driver = manualroute
domains = mupp.net
route_data = * ${lookup{$local_part}lsearch{/the/route/file}}


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.