summaryrefslogtreecommitdiff
path: root/localmkpostfixvirtual
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-07 16:22:51 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-07 16:22:51 +0000
commit85d7610aadf1be8e4d1bece0a5ad5d63ccd3089c (patch)
tree2c2c72a2123c0e234e21b65196cf17a702ceb501 /localmkpostfixvirtual
parent0490e886f63d90013c3e10fe456fb84d6dd48fab (diff)
Rename files and add/improve descriptive headers.
Diffstat (limited to 'localmkpostfixvirtual')
-rwxr-xr-xlocalmkpostfixvirtual22
1 files changed, 15 insertions, 7 deletions
diff --git a/localmkpostfixvirtual b/localmkpostfixvirtual
index 4a996e6..654de19 100755
--- a/localmkpostfixvirtual
+++ b/localmkpostfixvirtual
@@ -1,14 +1,22 @@
#!/bin/bash
-
+#
+# /usr/local/sbin/localmkpostfixvirtual
+# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
+#
+# $Id: localmkpostfixvirtual,v 1.5 2002-03-07 16:22:51 jonas Exp $
+#
# Generate virtual file for postfix
#
-# Each user should have space-separated hints like "mailname1@ mailname2@gid1 mailname3@gid2"
-# stored in the "Other" field (using chfn).
+# Hints are stored in the "Other" field (using chfn).
+#
+# Each user should have space-separated hints like "mailname1@ mailname2@gid1 mailname3@gid2".
+#
+# The user of each mailgroup should have hints like "@domain1 @domain2" for each hosted domain.
+#
+# Optional: root can have hints like "postmaster@ hostmaster@ support@" (default: "postmaster@").
+#
+# TODO: reuse getent requests (drastically improves speed)
#
-# The user of each mailgroup should have hints like "@domain1 @domain2" for each hosted domain
-# stored in the "Other" field (using chfn).
-
-#TODO: reuse getent requests (drastically improves speed with multiple domains)
function get_fullname_field() { getent passwd $1 | awk -F: '{print $5}' | awk -F, '{print $1}'; }
function get_roomnumber_field() { getent passwd $1 | awk -F: '{print $5}' | awk -F, '{print $2}'; }