Re: [Exim] rewrite

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Andreas Gietl
CC: exim-users
Assunto: Re: [Exim] rewrite
On Mon, 31 Jul 2000, Andreas Gietl wrote:

> i want to rewrite the domain of an incoming mail to another domain, that
> has to be looked up via lsearch from an alias file and want the incoming
> mail to be reprocessed and delivered to the new domain.


So you want to do two different things.

1. Rewriting is controlled by the rewrite portion of the configuration
(chapter 32).

2. Routing is controlled by directors and routers. You can send an
address to a new domain without actually rewriting it in the message.

> i have a file which contains:
>
> olddomain1.de newdomain1.de
> olddomain2.de newdomain2.de
>
> so if a mail for test@??? comes in i want it to be rewritten
> and finally delivered to newdomain1.de


If you just want to do the delivery, without actually rewriting any
addresses in the message, set up a domainlist router. It can use that
file.

reroute:
driver = domainlist
route_file = /that/file

If you want to rewrite, check out chapter 32.


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