Re: [exim] route question

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Malcolm McLean
Date:  
À: exim-users
Sujet: 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