From ece79a88f34b773b6fa07ec8bbd886311b2e3226 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Fri, 27 Sep 2019 12:35:10 +0100 Subject: [PATCH] eximconf: simplify a sender domain check by using sender_domains Signed-off-by: Adam D. Barratt --- modules/exim/templates/eximconf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 336b9d639..9d29cff8f 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -670,7 +670,7 @@ check_recipient: hosts = !+debianhosts message = mail from <$sender_address> not allowed externally - deny condition = ${if match_domain{$sender_address_domain}{+virtual_domains}} + deny sender_domains= +virtual_domains condition = ${if exists {${extract{directory}{VSENDERDOMAINDATA}{${value}/neversenders}}}} condition = ${lookup{$sender_address_local_part}lsearch{${extract{directory}{VSENDERDOMAINDATA}{${value}/neversenders}}}{true}} message = no mail should ever come from <$sender_address> -- 2.20.1