From bc7a6a9a8cf2d944b93eeb3831383658c31905f5 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 9 Sep 2017 20:19:47 +0200 Subject: [PATCH] Make last commit work Exim's command language is complex and hard to get right, so adjust as necessary to make this behave in a predictable way. Also use explicit true/false to make condition= not upset. --- 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 0be55338a..027cff9f1 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -598,7 +598,7 @@ check_recipient: # disabled accounts don't even get local mail. deny domains = +virtual_domains condition = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\ - {lookup{${extract{1}{-}{$local_part}}}lsearch;${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}\ + {${lookup{${extract{1}{-}{$local_part}}}lsearch{${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}{true}{false}}}\ {}} message = ${lookup{${extract{1}{-}{$local_part}}}lsearch{${extract{directory}{VDOMAINDATA}{${value}/mail-disable}}}{$value}} -- 2.20.1