Re: [exim] Condition for router

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: Martin Klewitz [gamigo AG]
CC: exim-users
Assumpte: Re: [exim] Condition for router
On Wed, 21 Jun 2006, Martin Klewitz [gamigo AG] wrote:
>
> I want some mails for a certain domain to be delivered locally and some
> to be relayed over a second mailserver. To do this I added a new router
> right before all other routers. It works fine if I try to relay all
> mails for hole domains:
>
> additional_route:
> driver = manualroute
> domains = domain1.com
> route_data = 1.2.3.4
> transport = remote_smtp
>
> The problem is that not all mails at domain1.com should be relayed.
> I tried a bit with lsearch and things like:
>
> local_parts = lsearch;/etc/exim/relay/$domain/local_parts
>
> But I did not find a working solution.


That ought to work. What was the problem?

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}