Hi out there,

for those of you who need to figure out which alias domains point to a
specific vpopmail domain, here's a little shell script:

--- cut here ---

#!/bin/sh

if [ ! $1 ] ; then
  echo "Usage: $0 <domain>"
  exit
fi

grep -e "[^:]:$1:" /var/qmail/users/assign | \
awk -F : '{ print $1 }' | sed 's/^+//' | sed 's/-$//'

--- stop cutting here ---

I saved it as "vlistaliasdomains". Have fun with it; comments welcome.

Jonas


Reply via email to