summaryrefslogtreecommitdiff
path: root/bin/postfix-generate-virtual-map
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 03:50:16 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-11 03:50:16 -0500
commit6bab779d41fa81ae544f795a1f9af8344c35427a (patch)
tree8c3953f2f9205c44db421275faa277f0dc059b43 /bin/postfix-generate-virtual-map
parentea18fd78c81129049e398ce545e39f55a28f193e (diff)
remove things that now live elsewhere
Diffstat (limited to 'bin/postfix-generate-virtual-map')
-rwxr-xr-xbin/postfix-generate-virtual-map21
1 files changed, 0 insertions, 21 deletions
diff --git a/bin/postfix-generate-virtual-map b/bin/postfix-generate-virtual-map
deleted file mode 100755
index 1203c63..0000000
--- a/bin/postfix-generate-virtual-map
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env ruby
-# Usage: postfix-show-virtual-map > ${file} && postmap hash:${file}
-cfg_groups = [ "hackers", "fellows" ]
-
-######################################################################
-require 'yaml'
-
-users = Dir.glob("users/*.yml").map{|f|YAML::load(open(f))}
- .find_all{|u|u["groups"] and not (u["groups"] & cfg_groups).empty?}
-
-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