summaryrefslogtreecommitdiff
path: root/bin/postfix-generate-virtual-map
diff options
context:
space:
mode:
Diffstat (limited to 'bin/postfix-generate-virtual-map')
-rwxr-xr-xbin/postfix-generate-virtual-map2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/postfix-generate-virtual-map b/bin/postfix-generate-virtual-map
index f323d6b..d5c2d21 100755
--- a/bin/postfix-generate-virtual-map
+++ b/bin/postfix-generate-virtual-map
@@ -3,7 +3,7 @@
load "#{File.dirname(__FILE__)}/common.rb"
-users = load_all_users.find_all{|u|u["groups"].include?("email")}
+users = load_all_users.values.find_all{|u|u["groups"].include?("email")}
users.each do |user|
if user["email"] and user["email"].length > 0