Peter Kirk, 2011-02-14 09:37:

> Tried it and it still does not work, any other ideas?  

route_list is the wrong approach here. Try this:

r_smarthost_x_com:
  driver = manualroute
  transport = remote_smtp
  senders = *@X.com
  condition = ${if eq {$sender_host_address} {10.20.20.20}}
  route_data = 10.10.10.10

(you could also integrate condition and route_data into a single
route_data statement, but it's more clear this way.)

If it does not work, you can find out the reason yourself by running a
fake smtp session:

# exim -d+expand -bh 10.20.20.20
...(lots of debug output)
EHLO example.com
...
MAIL FROM <[email protected]>
...
RCPT TO <[email protected]>
...

At this point you should see the router r_smarthost_x_com matching (or
at least, why it declines).

-- 
## 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