Am 10.02.26 um 16:05 schrieb ronaldo--- via Exim-users:
message = Domain blocked.

senders = nwildlsearch;/etc/exim/blacklist_domains


Sorry for the first reply, a missunderstanding.

You want this:

 condition = ${if forany{<, $recipients}{match{${lookup mysql {SELECT 1 FROM blacklisten WHERE ( '${quote_mysql:${lc:${address:$reply_address}}}' regexp entry or "${quote_mysql:${lc:${address:$header_from:}}}" regexp entry ) LIMIT 1 }}}{1}} {0}{1}}

and a sql database where the "entry"  is i.e. ".*@xxx.*\.domain\.tld" or any pattern you like.

That works better, because the from can be a valid one, but the spammer uses a reply-to and you want to check that too.

Not to mention, the easy ability to have different blacklists for different recipientdomains ;)

best regards,
Cyborg

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