Danielle M. <daniellem@???> (Do 25 Jun 2015 16:57:34 CEST):
> 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?
As long as you put {} around your ${if eq{…}}, the expansion won't
expand to 0 or an empty string. Remote the outer {} from your router
condition and you're fine, I suppose.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -