Am 20.12.13 12:56, schrieb Heiko Schlittermann:
> Hi,
>
> Thomas Stein <himbeere@???> (Do 19 Dez 2013 15:11:04 CET):
>> Am 19.12.13 14:07, schrieb Thomas Stein:
>> > Hello.
>> >
>> > I have a strange customer request. The cusomer wishes to use differnet
>> > smart hosts depending on from adress. Is this possible? My first try is
>> > not sooo successfull. Maybe someone did this in the past or has an idea?
>> > Thank you very much.
>>
>> Found a way:
>>
>> even_smarter_route:
>> driver = manualroute
>> #debug_print = "R: smarter_route for $domain"
>> route_data =
>> ${lookup{$header_From:}lsearch{/etc/exim/smarter_route}}
>> transport = remote_smtp
>>
>> This works. However changing $header_From: to $header_X-Envelope-To:
>> does not. Still trying.
>
> I'd not rely on header_from, it may contain arbitrary data, even
> multiple addresses. Iff you really need this header, you should use
>
> ${address:$h_from:}
>
> or
> ${extract{1}{:}{${addresses:$h_from:}}}
>
> But this is not safe anyway.
>
> I'd rely on $sender_address.
Well i think this is a good idea but you know, if the customer.....
thank you
t.