Re: [exim] route from IP

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jakob Hirsch
Fecha:  
A: exim-users
Asunto: Re: [exim] route from IP
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 <bla@???>
...
RCPT TO <whatever@???>
...

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