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




-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to