-----Original Message-----
From: Erik Espinoza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2006 6:13 PM
To: [email protected]
Subject: Re: [qmailtoaster] Quota quandry.
Hi Dairenn,
Unfortunately it appears that vqadmin has been totally
dropped by Inter7. It is horribly out of date and unsupported
by the QmailToaster. If we were to get a volunteer to help
out with fixing the coding, I'm sure it would be included in
future QmailToaster releases, but for now it is just deprecated.
Thanks,
Erik
On 4/6/06, Dairenn Lombard <[EMAIL PROTECTED]> wrote:
Well, we ended up writing this shell script to fix the
quota problem I
asked about:
#!/bin/bash
echo "Enter Domain Name: "
read domain
echo "Enter the postmaster password: "
read pass
echo "1 - Starter/Rhizome"
echo "2 - Copper"
echo "3 - Bronze"
echo "4 - Silver"
echo "5 - Gold"
echo "6 - Platinum"
echo "7 - Windows 1"
echo "8 - Windows 2"
echo "9 - Windows 3"
echo "10 - Windows 4"
echo "Enter the hosting plan: "
read plan
/home/vpopmail/bin/vadddomain $domain $pass
if [ "$plan" == "1" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 100 -P 2 -F 0
-A 0 -R 0 -L
0 $domain fi
if [ "$plan" == "2" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 100 -P 6 -F 5
-A 5 -R 5 -L
1 $domain fi
if [ "$plan" == "3" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 100 -P 21 -F 20
-A 10 -R
10 -L 5 $domain fi
if [ "$plan" == "4" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 31 -F 30
-A 15 -R
20 -L 10 $domain fi
if [ "$plan" == "5" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 51 -F 50
-A 20 -R
42 -L 20 $domain fi
if [ "$plan" == "6" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 81 -F 80
-A 25 -R
50 -L 30 $domain fi
if [ "$plan" == "7" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 100 -P 21 -F 20
-A 10 -R
10 -L 1 $domain fi
if [ "$plan" == "8" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 31 -F 30
-A 15 -R
20 -L 1 $domain fi
if [ "$plan" == "9" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 51 -F 50
-A 20 -R
42 -L 1 $domain fi
if [ "$plan" == "10" ]
then
/home/vpopmail/bin/vmoddomlimits -Q 200 -P 81 -F 80
-A 25 -R
50 -L 1 $domain Fi
The idea is to run this script after adding a domain through the
add_domain.html page, to set the domain's limits.
Because, as it were, the add_domain.html page ONLY sets the
quota for
individual users on that domain, NOT for that entire domain!
The reason I'm posting this here, however, is because we
want to find
a way to have this functionality as part of the VQAdmin web
interface... We looked in /usr/share/toaster/cgi-bin/vqadmin and
noticed that toaster.vqadmin dynamically generates
show/add_domain.html.
This leaves the question of how we could setup our own custom
interface that properly sets the quotas we want?
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]