On 6/24/2015 6:29 PM, Jeremy Harris wrote:
> On 24/06/15 23:40, Danielle M. wrote:
>> 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>
>>
> http://exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html
>
> "if the result is a forced failure, or an empty string, or one of the
> strings “0” or “no” or “false” (checked without regard to the case of
> the letters), the router is skipped, and the address is offered to the
> next one.
>
> If the result is any other value, the router is run"
>
>
> Your option value evaluates as "{true}" or "{}".
Hey Jeremy,
Thank you for your reply. My router is not being skipped no matter if
acl_c_msp is 1 or 0 - that's my problem. I need the router to be skipped
if acl_c_MSP is 0. How do I do this?
Thank you,
Danielle