Re: [exim] multiple MTA tries

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jan-Piet Mens
日付:  
To: Rakotomandimby Mihamina
CC: exim-users
題目: 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