On Fri, 21 Feb 2025, Slawomir Dworaczek via Exim-users wrote:
heloo
unfortunately still the same error, chatgpt and deepseek also failed at
this and cannot solve the problem :)
failed to expand condition "${if or {{!def:h_X-Bogosity:}{{ and
{{def:h_X-Bogosity:}{match{$h_X-Bogosity:}{^Spam}}{!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}{!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}}}}}{true}{false}}"
for maildir_spam_bosity router: condition name expected, but found "{ and
{{def:h_X-" inside "or{...}" condition
Looking at the expanded version below, the "and" is inside *two* pairs of
{}, which might be the issue.
argh, probably `and' should be enclosed in additional bracket pair (I
personally try to avoid this complex expressions though):
condition = ${if
or {
{!def:h_X-Bogosity:}
{
{ and {
{def:h_X-Bogosity:}
{match{$h_X-Bogosity:}{^Spam}}
{!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
{!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
}}
}
}
{true}{false}
}
--
Andrew C. Aitchison Kendal, UK
and...@aitchison.me.uk
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/