Make last commit work
authorTollef Fog Heen <tfheen@err.no>
Sat, 9 Sep 2017 18:19:47 +0000 (20:19 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 9 Sep 2017 18:19:47 +0000 (20:19 +0200)
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

index 0be5533..027cff9 100644 (file)
@@ -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}}