Nico Erfurth wrote:
> Dan Egli wrote:
>
>> I removed the quotes, verified all the \'s no effect.
>>
>> condition = ${if or { \
>> {eq {$interface_port}{10025} {0}{1}}\
>> {eq \
>> {${lookup{$sender_address}lsearch{/etc/exim/amavis.bypass}{0}}} {0}}\
>> }\
>> }
>
>
> You can't return values in subconditions, your expansion should look like:
> ${if or { \
> {eq {$interface_port}{10025}} \
> {eq {${lookup{$sender_address} \
> lsearch{/etc/exim/amavis.bypass}{1}} {1}} \
> }{0}{1}}
>
> At least that's what I think you wanted to do.
>
> Nico
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##
>
>
Still doesn't work. I pasted it in directly, and the result:
2004-07-05 12:07:32 1BhXrp-0001sH-0N failed to expand condition "${if or
{ {eq {$interface_port}{10025}} {eq {${lookup{$sender_address}
lsearch{/etc/exim/amavis.bypass}{1}} {1}} }{0}{1}}" for amavis router:
missing 2nd string in {} after "eq"
I really don't understand exim conditions well enough to have any idea
how to fix this.
--
-- Dan