Try understanding the implications of changing and to or. If I'm not wrong, in my example I used *and* for combining the conditions.
And additionally - on a second review - I'd not use ret=key anymore, because for a domain "false" you'll get unexpected results. Better explicitly returning true/false or just true and nothing else otherwise. Am 22. Februar 2025 19:15:30 MEZ schrieb "Sławomir Dworaczek" <sla...@dworaczek.info>: >Heloo Heiko >very strange thing >if in condition I only have: >condition = ${if match{$h_X-Bogosity:}{^Spam}} >then mail coming from outside as well as mail inside (local exim domain) is >filtered correctly, i.e. what is tagged Spam goes to spam folder. > >but if the rule already has a second condition: >condition = ${if >or{{eqi{$h_X-Bogosity:}{Spam}}{!bool_lax{${lookup{${domain:$sender_address}}lsearch,ret=key{/etc/exim/listy_acl/bogo_domains}}}}}\ >{yes}{no}} >then mail coming from outside tagged as spam goes to spam but all mails from >local domains also go to spam. >and I care about the second condition because some domain emails that are >tagged as spam should be delivered to inboxes and not to spam. >I don't understand this anymore > >all router is > >maildir_spam_bosity: >domains = dsearch,ret=full;//etc/exim >driver = accept >condition = ${if or{{eqi{$h_X-Bogosity:}{Spam}}\ >{!bool_lax{${lookup{${domain:$sender_address}}lsearch,ret=key{/etc/exim/listy_acl/bogo_domains}}}}}\ >{yes}{no}} >local_parts = lsearch;$domain_data >transport = maildir_spam_delivery_bogo > >I added in domain: +local_domains and !+local_domains - it didn't change >anything > > > > >regards >----- Original Message ----- From: "Heiko Schlittermann via Exim-users" ><exim-users@lists.exim.org> >To: "Sławomir Dworaczek" <sla...@dworaczek.info>; <exim-users@lists.exim.org> >Sent: Saturday, February 22, 2025 6:08 PM >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) -- ## 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/