On Mon, 21 Jul 2003, Thomas Baumann wrote:
> Hello list,
>
> I still use exim 3.36, but if this is only possible
> with exim 4, i will upgrade....
>
> The question:
>
> How can I deliver mails for a special recipient
> to an special mailserver, e.g.
>
> mails to *@mydomain.de are delivered via smtp
> to my internal mailserver 10.1.1.1, but mails to
> tom@??? and thomas@??? (and only these mails)
> should be delivered to mailserver 10.1.20.25.
This is easy in Exim 4.
router_for_mydomain.de:
driver = manualroute
domains = mydomain.de
transport = remote_smtp
route_list = * "${if or {\
{eq {$local_part}{tom}}\
{eq {$local_part}{thomas}}\
}\
{10.1.20.25}{10.1.1.1}}"
If the list were longer, it would be easier to use two routers:
r1:
driver = manualroute
domains = mydomain.de
local_parts = tom : thomas : .... (or a file or whatever)
transport = remote_smtp
route_list = * 10.1.20.25
r2:
driver = manualroute
domains = mydomain.de
transport = remote_smtp
route_list = * 10.1.1.1
--
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