Cyborg via Exim-users wrote:
> >
> >> accept condition = ${if or{\
> >> { and{ {CONDITION 1}{CONDITION 2} }}\
> >> { CONDITION 3 }\
> >> } {1}}
> > So, for my case it should look like this, right )(copied verbatim from my test config):
> >
> > accept condition = ${if or{\
> > ${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}} \
> > ${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}} \
> > } {yes}}
> >
> >
> > Does not work however:
> > failed to expand ACL string "${if or{${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}} ${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}} } {yes}}": each subcondition inside an "or{...}" condition must be in its own {}
> >
> >
> > What am I doing wrong?
> >
> >
> I cant explain it better than the error message already does :
>
> each subcondition inside an "or{...}" condition must be in its own {}
>
>
> means:
>
> accept condition = ${if or{\
> *{*${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}}*}* \
> *{*${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}}*}* \
> } {yes}}
This variant does not work either:
accept condition = ${if or{\
{${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}}} \
{${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}}} \
} {yes}}
failed to expand ACL string "${if or{{${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}}} {${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}}} } {yes}}": condition name expected, but found "${lookup{$local_" inside "or{...}" condition
And I'm damned if I understand what is "condition name expected."
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet
http://vas.tomsk.ru/