Re: Blocking e-mails using part of a domain

Markus Reschke via Exim-users <[email protected]> Wed, 11 Feb 2026 13:42:13 +0100 (CET)
Newsgroups gmane.mail.exim.user
Message-ID <[email protected]>
Hi!

On Tue, 10 Feb 2026, 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.

I have a similar filter (basically the same setup), mainly for SPAM 
distributed by Google. The entries differ a bit. For a single domain:
   *@domain_to_block.com
And for subdomains:
   *.domain_to_block.com

Just one asterisk at the beginning. For more complex pattern matching you 
would have to use a regular expression (starting with a ^).

ciao
  Markus
-- 
/ Markus Reschke              \
\ [email protected] /


-- 
## 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