Hello,

I am running into an issue where my mail relay is ignoring the condition I have set and routing ALL mail. Here's what I have at connect time:

acl_check_connect:
accept condition = ${if ={587}{$interface_port}}
       set acl_c_MSP = 1
accept condition = ${if ={25}{$interface_port}}
       set acl_c_MSP = 0
accept condition = ${if ={26}{$interface_port}}
       set acl_c_MSP = 0

And then under my mail router:

smart_route:
     condition = {${if eq{$acl_c_MSP}{1}}}
     driver = manualroute
     domains = !+local_domains
     transport = remote_smtp
     route_list = * <relay server IP>

No matter what acl_c_MSP is set to, mail is still routed to the mail relay server. What am I doing wrong?

Thank you!
Dani


--
## List details at https://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