Re: [exim] route question

Top Page
Delete this message
Reply to this message
Author: Malcolm McLean
Date:  
To: exim-users
Subject: Re: [exim] route question
On 2012/10/24 22:57, Tony Peña wrote:
> Hi,
>
> I have to know if exist some option into config to can send mails depending
> from destiny with other server
> tell me if exist this way router config. where i can read it.
>
> what i mean?
>
> my server standar ---- send mail to inet.....
>      (some option)
>     you are W.X.Y.Z ?
>        no ---- go to internet
>        yes --- go to this relay----other exim4-server.

>
>
> i hope i can explain with this.
>
> thanxs in advance
>


Hi,

This feels like a smart host style of config. Maybe something like this
will help.

begin routers
send_to_relay:
driver = manualroute
condition = ${if match_ip {$sender_host_address}{W.X.Y.Z}}
route_list = * other.exim4-server.com
transport = remote_smtp
no_more

dnslookup:
driver = dnslookup
transport = remote_smtp
no_more


begin transports
remote_smtp:
   driver                    = smtp



Malcolm