INSTALLING Vadmin
------------------
I am assuming you already have installed SquirrelMail and it does in
fact work well. I am also assuming that you have your vmailmgrd daemon
up and running as well, as this is not covered here.

Now you need to get libmcrypt and compile it into PHP. Get libmcrypt from
ftp://ftp.hellug.gr/pub/unix/mcrypt/libmcrypt/ or from some other place,
if that location is no longer valid (try freshmeat.net). If you are 
wondering why you need libmcrypt, read doc/SECURITY and doc/CRYPTO. Besides,
this is also useful since SquirrelSpell can make use of libmcrypt to
provide your users with extra privacy (I wonder who wrote that ;)).

Compile libmcrypt using the standard ./configure, make, and make install.
Now go to the directory with your PHP source. Re-configure PHP to
include libmcrypt support by adding a --with-mcrypt=[dir] flag. (Note:
I've had odd behavior after recompiling PHP, which only got resolved by
running 'make distclean' first before running configuration scripts. If
PHP behaves oddly after you compile in libmcrypt, try that.)

After you have re-configured PHP, you are ready to install VADMIN.
Untar it into your SquirrelMail plugins directory and change into
the "vadmin/scripts" dir. Being in "scripts" run the installer:

./installer.sh

This will ask you several rather verbose questions and then configure 
and install VADMIN, including all security features. When installer.sh
is done, restart your Apache. Voila.

If you have any Vmailmgr-ized virtual domains already configured on your
system, run the "domain_magic.sh" script. It will take a look at
your qmail/control/virtualdomains, sniff some glue, and configure
those domains to be used with VADMIN automagically.

After this is done, you may want to move the whole scripts directory to a
more convenient/safe place. Go up one dir and run:

mv scripts /root/vadmin-scripts

Now whenever you need to work with VADMIN, you may use the scripts
I provided. Just enter your /root/vadmin-scripts directory and execute
away. You can get the description of what each script does by running

./whatsthisdo.sh scriptname.sh

or just

./whatsthisdo.sh

to see description of all scripts.

