]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/exim/templates/eximconf.erb
wrap in file test first
[dsa-puppet.git] / modules / exim / templates / eximconf.erb
index ae5df43a494e283608081734168925d89b8ba2da..3bd6f90637e5e2a9b00db824794d9ebebf000fa3 100644 (file)
@@ -619,6 +619,7 @@ check_recipient:
          message       = mail from <$sender_address> not allowed externally
 
   deny    sender_domains= +virtual_domains
+          condition     = ${if exists {${extract{directory}{VDOMAINDATA}{${value}/localusers}}}}
           condition     = ${lookup{$sender_address_local_part}lsearch{${extract{directory}{VDOMAINDATA}{${value}/localusers}}}{true}}
          hosts         = !+debianhosts
          message       = mail from <$sender_address> not allowed externally