Re: [exim] multiple MTA tries

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jan-Piet Mens
Dátum:  
Címzett: Rakotomandimby Mihamina
CC: exim-users
Tárgy: Re: [exim] multiple MTA tries
On Wed Sep 02 2009 at 09:19:26 CEST, Rakotomandimby Mihamina wrote:

> - CPU cycles are cheap, for me :-P


Well, since they are cheap for you, here's an expensive solution :-)

        mobile_smart:
          driver = manualroute
          domains = !+local_domains
          transport = remote_smtp
          route_list = * "${run{/usr/local/whereto}}"



The `whereto' program can then determine where you are (e.g. $ENV, IP
address, outside temperature, etc.) and return a string containing the
target host:

        #!/bin/sh


        if [ "$IPADDRESS" = '10.0.2.1'] ; then
                echo "my.smart.gate.way"
        else 
                echo "their.dumb.gate.way"
        fi


Something along those lines.

        -JP