Heiko Schlittermann <h...@schlittermann.de> (So 23 Feb 2025 10:58:30 CET):
> Heiko Schlittermann <h...@schlittermann.de> (So 23 Feb 2025 10:13:11 CET):
…
> If you want to check full addresses, use lsearch*@ and $sender_address
> instead of $sender_address_domain and drop the mapping from the
> from-addresses to their domains:
> 
> 
> ${if and{
>       {match{$h_x-bogosity:}{(?i)^spam,}}
>       {
>         !forany{$sender_address:${addresses:$h_from:}}
>                  {bool{${lookup{$item}lsearch*@{/tmp/x.bogook}{yes}}}}
>       }
>      }
>     {spam}{ham}
> }

And, of course, the format of the bogook file would change to include
the full address or an asterisk as localpart:

        *@example.com
        h...@example.com

-- 
Heiko

Attachment: 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/

Reply via email to