Specifically, I need to set a condition in the routers section that if the header X-Bogosity:Spam but does not have X-Bogosity:Ham or there is no email address or domain name in the bogo_lists file, then the transport should be performed scenario1: So SPAM=Yes Ham=No there is a domain or email address in the bogo_lists file -> the transport will not be performed Scenario2: Spam=No Ham=Yes there is or there is no domain or email address in the bogo_lists file -> the transport will not be performed Scenario3: SPAM=Yes Ham=No there is no domain or email address in the bogo_lists file -> the transport will be performed Scenario4: there is no X-Bogosity header -> the transport will not be performed

condition = ${if or {{!def:h_X-Bogosity:}{${if 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}}


regards

----- Original Message ----- From: "Heiko Schlittermann" <h...@schlittermann.de>
To: "Sławomir Dworaczek" <sla...@dworaczek.info>
Sent: Friday, February 21, 2025 11:03 AM
Subject: Re: [exim] 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/

Reply via email to