This is a quick hack, I tested it on a small list on my Linux box:
#!/bin/sh
cat $1 | ( \
IFS=: ; while read username pw; \
do /home/vpopmail/bin/vadduser $username $pw; done \
)
------------
The text file is like this:
[EMAIL PROTECTED]:pass1
[EMAIL PROTECTED]:pass2
[EMAIL PROTECTED]:pass3
-------------
I ran it with <scriptfile> <textfile>, Please test it before you put it in a
prod environment, it has been tested very little.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 11:47 AM
Subject: Re: atomatic vdomains and users passwd creation
On Fri, May 04, 2001 at 12:12:00PM +0200, jcarreiro wrote:
> i'm totally newbie to make scripts of any kind :))
>
> so, i'm wondering if there's some existing scripts
> to create vdoamins and user with passwords from a text file for vpopmail
...
I haven't encountered any. How is the text file formatted? It should
be dead simple to throw something together...
Ben
--
Ben Beuchler There is no spoon.
[EMAIL PROTECTED] -- The Matrix