Hi.
  
On Tue, Feb 10, 2026 at 12:05:27PM -0300, ronaldo--- via Exim-users wrote:
> 1. Created a file with the domains I want to block in
> /etc/exim/blacklist_domains and included the pattern
> *@*.domain_to_block.com.
[...]
> senders = nwildlsearch;/etc/exim/blacklist_domains

 Your pattern is "invalid" for nwildlsearch. Indeed, it is read as
 "arbitrary sequence of symbols followed by string '*.domain_to_block.com'",
 where "*" is treated literally. Look here:

# echo '*@*.domain_to_block.com' > /tmp/blacklist_domains

# exim4 -be 
'${lookup{[email protected]_to_block.com}nwildlsearch,ret=key{/tmp/blacklist_domains}{$value}{NONE}}'
NONE

# exim4 -be 
'${lookup{jon@*.domain_to_block.com}nwildlsearch,ret=key{/tmp/blacklist_domains}{$value}{NONE}}'
jon@*.domain_to_block.com

 Use regular expressions, they are recognized as strings started with
 caret (^). Read description of nwildlsearch for details.
-- 
 Eugene Berdnikov

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki

Reply via email to