On Wed, Feb 12, 2003 at 11:31:12AM -0600, Tim Legant wrote:
> > Has anyone considered making a script that would add a virtual user by
> > running the vadduser and then creating the .tmda dir and copying template
> > files into the proper places so the user is ready to go?
> 
> I think it's been discussed, but I don't think anyone has done it yet.

I just couldn't resist the challenge.  I just wrote a script to do this.
You can download it at the following URL:

  http://projects.standblue.net/software/tmda/vadduser-tmda.tar.gz

Simply drop the tarball into your ~vpopmail directory, then gunzip and
untar it.  Two new files will be created:

  bin/vadduser-tmda
  etc/vtmdarc

Adjust the variables at the top of the vadduser-tmda script to suit your
site.  The vtmdarc file is used for any site specific variables that you
want to go into every vpopmail users .tmda/config file.  You can use any
of the variables that are declared in the vadduser-tmda script ($VUSERDIR,
$VDOMDIR, etc) to help customize things.  Otherwise it looks exactly like
a standard .tmda/config file.

Call the vadduser-tmda script exactly as you would call vadduser, using all
the same command line switches.  Everything I have tested with it so far
seems to work, but I am certain there are things that need to be fixed.
Please let me know if you find something that isn't correct.

Good luck!

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to