From 85d7610aadf1be8e4d1bece0a5ad5d63ccd3089c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 7 Mar 2002 16:22:51 +0000 Subject: Rename files and add/improve descriptive headers. --- localmkpostfixvirtual | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'localmkpostfixvirtual') 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 +# +# $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}'; } -- cgit v1.2.3