From a54ccb43f33b675eed9ff85da0eebc951f0558c0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 1 Nov 2023 09:02:35 +0000 Subject: [PATCH] Allow domain level blocks on email senders --- cookbooks/exim/templates/default/exim4.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/exim/templates/default/exim4.conf.erb b/cookbooks/exim/templates/default/exim4.conf.erb index 0830aa141..6babb839a 100644 --- a/cookbooks/exim/templates/default/exim4.conf.erb +++ b/cookbooks/exim/templates/default/exim4.conf.erb @@ -446,6 +446,10 @@ acl_check_rcpt: message = Rejected because $sender_address is blacklisted\nQueries to postmaster@$qualify_domain !hosts = +relay_from_hosts + deny sender_domains= partial-lsearch;/etc/exim4/blocked-sender-domains + message = Rejected because $sender_address is blacklisted\nQueries to postmaster@$qualify_domain + !hosts = +relay_from_hosts + # Accept mail to postmaster in any local domain, regardless of the source, # and without verifying the sender. -- 2.39.5