[exim] $sender_host_address match not working

Top Page
Delete this message
Reply to this message
Author: Dmitry Pryadko
Date:  
To: exim-users
Subject: [exim] $sender_host_address match not working
please explain what I do wrong
I have named list called relay_from_hosts
and router below is my first router
if sending host exists in relay_from_hosts, this router must decline,
but it accepts
why ?

relay_to_mailhost:
     driver = manualroute
     domains = +relay_to_domains
     condition = ${if !match_ip{$sender_host_address}{+relay_from_hosts}}
     transport = remote_smtp
     route_data = ${lookup mysql{select mailserver from domains_servers 
where domain='${quote_mysql:$domain}'}}


--
Dmitry Pryadko
hosting.rbc.ru