[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Create email user account or even alias only without web directory, etc?
- Subject: Re: [cobalt-users] Create email user account or even alias only without web directory, etc?
- From: baltimoremd@xxxxxxxxxxxxxxx
- Date: Sun Sep 2 08:07:16 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Sun, 2 Sep 2001, cbtrussell wrote:
> This really wasn't clear the first time. All I want to do is create an email
> alias that can forward to another e-mail address somewhere else...and to be
> able to do so without having to "add a site user" to be able to create that
> alias.
This was posted before...it works, even if it isn't elegant
#!/bin/bash
NAME=$1
DOMAIN=$2
RESULT=$3
if [ "$1" = "" ]; then
echo "Usage is ./adduser.sh username domain destination"
exit 1
fi
if [ "$2" = "" ]; then
echo "Usage is ./adduser.sh username domain destination"
exit 1
fi
if [ "$3" = "" ]; then
echo "Usage is ./adduser.sh username domain destination"
exit 1
fi
echo $NAME"@"$DOMAIN" "$RESULT >>
/etc/mail/virtusertable
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
The line above that starts echo got wrapped....make it and the next one
one long line.
Thom
baltimoremd@xxxxxxxxxxxxxxx Thom LaCosta K3HRN Webmaster
http://www.baltimoremd.com/cobaltfacts/
Home of the CobaltFacts Web Ring - cobalt-ot and hosting-biz mailing lists