diff options
Diffstat (limited to 'bin/postfix-generate-virtual-map')
-rwxr-xr-x | bin/postfix-generate-virtual-map | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/postfix-generate-virtual-map b/bin/postfix-generate-virtual-map deleted file mode 100755 index d5c2d21..0000000 --- a/bin/postfix-generate-virtual-map +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby -# Usage: postfix-show-virtual-map > ${file} && postmap hash:${file} - -load "#{File.dirname(__FILE__)}/common.rb" - -users = load_all_users.values.find_all{|u|u["groups"].include?("email")} - -users.each do |user| - if user["email"] and user["email"].length > 0 - if user["email"][0] =~ /.*@parabola.nu$/ - if user["email"].length > 1 - puts "#{user["username"]}@parabola.nu #{user["email"][1]}" - end - else - puts "#{user["username"]}@parabola.nu #{user["email"][0]}" - end - end -end |