If I'm not mistaken: if there is no such header, the first expression inside the "and" is false, so is the whole expression and the example would return "that's ok".
Isn't that, what you need? Am 21. Februar 2025 19:46:45 MEZ schrieb "Sławomir Dworaczek" <sla...@dworaczek.info>: >Heloo Heiko >Everything seems OK, but I need to add a rule that checks if there is an >X-Bogosity header at all, if there is none then it should not perform the >transport, because messages sent internally within the domain are not tagged >and everything goes to the SPAM folder > >condition = ${if and{ \ > {eqi{$h_X-Bogosity:}{Spam}} \ > > {!bool_lax{${lookup{$sender_address}lsearch,ret=key{/etc/exim/listy_acl/bogo_lists}}}} > \ > > {!bool_lax{${lookup{${address:$h_from:}}lsearch,ret=key{/etc/exim/listy_acl/bogo_lists}}}} > \ > }{considered as spam}{that's ok}} > > >Thank you very much for your help > > >----- Original Message ----- From: "Heiko Schlittermann via Exim-users" ><exim-users@lists.exim.org> >To: "Sławomir Dworaczek" <sla...@dworaczek.info> >Sent: Friday, February 21, 2025 11:03 AM >Subject: [exim] Re: please check the condition > > >> >> -- >> ## 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/ >> > -- Heiko Schlittermann (unterwegs)
signature.asc
Description: PGP signature
-- ## 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/