Re: [vchkpw] Quota Question

2005-03-23 Thread Tom Collins
Then that must be the default for the domain.
On Mar 23, 2005, at 12:46 PM, MacConnect Home Office wrote:
It doesn't let me modify the quota, but when I create a new user in 
that domain, it has NOQUOTA.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] Quota Question

2005-03-23 Thread MacConnect Home Office
It doesn't let me modify the quota, but when I create a new user in 
that domain, it has NOQUOTA.

On Mar 23, 2005, at 12:08 PM, Tom Collins wrote:
On Mar 23, 2005, at 8:30 AM, MacConnect Home Office wrote:
One last question.how can I tell whether qmailadmin is configured 
with the -disable-modify-quota option?
Log in as a postmaster, modify a user and see if it lets you modify 
the quota.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: 
http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com





Re: [vchkpw] Quota Question

2005-03-23 Thread Tom Collins
On Mar 23, 2005, at 8:30 AM, MacConnect Home Office wrote:
One last question.how can I tell whether qmailadmin is configured 
with the -disable-modify-quota option?
Log in as a postmaster, modify a user and see if it lets you modify the 
quota.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] Quota Question

2005-03-23 Thread MacConnect Home Office
One last question.how can I tell whether qmailadmin is configured 
with the -disable-modify-quota option?

Thanks
On Mar 23, 2005, at 9:23 AM, Tom Collins wrote:
On Mar 23, 2005, at 8:11 AM, MacConnect Home Office wrote:
So is there a way to use vsetuserquota to set quotas on all accounts 
on the system, regardless of their domain?
Get a list of domains with `vdominfo -n` and then call vsetuserquota 
with the domain name to update quota for all users in the domain.

Also, is there a way to configure vpopmail so that all new accounts 
created have the same quota figure?
vmoddomlimits -d -q 50M
If you use qmailadmin, you will want to configure it with 
--disable-modify-quota (actually, just make sure you don't modify it), 
otherwise postmasters will be able to change user quotas.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: 
http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com





Re: [vchkpw] Quota Question

2005-03-23 Thread Tom Collins
On Mar 23, 2005, at 8:11 AM, MacConnect Home Office wrote:
So is there a way to use vsetuserquota to set quotas on all accounts 
on the system, regardless of their domain?
Get a list of domains with `vdominfo -n` and then call vsetuserquota 
with the domain name to update quota for all users in the domain.

Also, is there a way to configure vpopmail so that all new accounts 
created have the same quota figure?
vmoddomlimits -d -q 50M
If you use qmailadmin, you will want to configure it with 
--disable-modify-quota (actually, just make sure you don't modify it), 
otherwise postmasters will be able to change user quotas.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] Quota Question

2005-03-23 Thread MacConnect Home Office
So is there a way to use vsetuserquota to set quotas on all accounts on 
the system, regardless of their domain?

Also, is there a way to configure vpopmail so that all new accounts 
created have the same quota figure?

Thanks
On Mar 23, 2005, at 8:57 AM, Tom Collins wrote:
On Mar 23, 2005, at 7:47 AM, Rick van Vliet wrote:
MacConnect Home Office wrote:
Is there a command in vpopmail that I can use to set quota limits on 
every domain on my system?  I don't want to set per account quotas, 
but rather a per domain disk limit.  Is there an easy way to do 
this, other than by modifying each domains' .qmailadmin-limits file?
Thanks
Vpopmail does have domain limits, but AFAIK, they are broken in the 
current release of vpopmail.  I haven't had much time for vpopmail 
development recently, and domain quotas haven't been a high priority 
for me.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: 
http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com





Re: [vchkpw] Quota Question

2005-03-23 Thread Tom Collins
On Mar 23, 2005, at 7:47 AM, Rick van Vliet wrote:
MacConnect Home Office wrote:
Is there a command in vpopmail that I can use to set quota limits on 
every domain on my system?  I don't want to set per account quotas, 
but rather a per domain disk limit.  Is there an easy way to do this, 
other than by modifying each domains' .qmailadmin-limits file?
Thanks
Vpopmail does have domain limits, but AFAIK, they are broken in the 
current release of vpopmail.  I haven't had much time for vpopmail 
development recently, and domain quotas haven't been a high priority 
for me.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] Quota Question

2005-03-23 Thread Rick van Vliet
MacConnect Home Office wrote:
Is there a command in vpopmail that I can use to set quota limits on 
every domain on my system?  I don't want to set per account quotas, but 
rather a per domain disk limit.  Is there an easy way to do this, other 
than by modifying each domains' .qmailadmin-limits file?
Thanks



OK, I'm out on a limb here. Would this entry from the quick install 
guide at inter7 make sense?
vsetuserquota( char *user, char *domain, char *quota)
user = user name to change quota for
domain = virtual domain
char = quota in bytes. M/m and K/k abbrieviations apply. 5M 5m and 
500 all equal 5 million bytes hard quota

http://www.inter7.com/vpopmail/vpopmail.html
You can also set a system-wide databyte limit for qmail using the 
/control/databytes file (that you create),
OR
setting the environment variable in tcp.smtp
something like this:
[EMAIL PROTECTED] Maildir]# vi /etc/tcp.smtp
127.0.0.:allow,RELAYCLIENT="",DATABYTES="1000"
(restarting qmail to put changes into effect.)

The environment variable overrides the /control/databytes setting if it 
exists.

HTH,
rick



Re: [vchkpw] Quota Question

2004-09-09 Thread Tom Collins
On Sep 9, 2004, at 5:50 PM, Matthew Walker wrote:
Darn. Any chance of it being supported in the future, or has it just
been decided to let that be handled by OS quotas?
If you really want it, and can't code it yourself, you'll have to wait 
until someone else (who can code it) really wants it and has the time 
to code it.

Of, if you have a serious need for it, you could sponsor the feature's 
development.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Quota Question

2004-09-09 Thread Matthew Walker
Darn. Any chance of it being supported in the future, or has it just
been decided to let that be handled by OS quotas?


On Thu, 9 Sep 2004 17:40:47 -0700, Tom Collins <[EMAIL PROTECTED]> wrote:
> On Sep 9, 2004, at 10:42 AM, Matthew Walker wrote:
> > QmailAdmin doesn't seem to handle Message Count quotas. At least, my
> > version doesn't, and I'm pretty sure it's got everything turned on. ;)
> 
> Correct.  You might be able to enter 100S,1000C in the quota field
> and have it processed correctly, but there isn't any native support.
> 
> > I did have one more question.
> >
> > Does vpopmail+mysql properly support per-domain quotas?
> 
> No, it's broken.  It used to cause crashes, now it just doesn't work.
> 
> 
> 
> --
> Tom Collins  -  [EMAIL PROTECTED]
> QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
> Info on the Sniffter hand-held Network Tester: http://sniffter.com/
> 
>


Re: [vchkpw] Quota Question

2004-09-09 Thread Tom Collins
On Sep 9, 2004, at 10:42 AM, Matthew Walker wrote:
QmailAdmin doesn't seem to handle Message Count quotas. At least, my
version doesn't, and I'm pretty sure it's got everything turned on. ;)
Correct.  You might be able to enter 100S,1000C in the quota field 
and have it processed correctly, but there isn't any native support.

I did have one more question.
Does vpopmail+mysql properly support per-domain quotas?
No, it's broken.  It used to cause crashes, now it just doesn't work.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Quota Question

2004-09-09 Thread Rainer Duffner
Am Do, den 09.09.2004 schrieb Matthew Walker um 19:42:
> QmailAdmin doesn't seem to handle Message Count quotas. At least, my
> version doesn't, and I'm pretty sure it's got everything turned on. ;)

Yup. That's why I'm asking.

> I did have one more question.
> 
> Does vpopmail+mysql properly support per-domain quotas?

I think the domain-quots feature is getting silently ignored.
It's so silent, it's not even in the README.quotas

Also, when it worked it's said to be very slow for large servers.
When I really need it, I'll be using OS-quotas.
Can vqadmin (or any other webbased admin-tool) be used/extended to
create domains with -g  ?

Or do I have to write a perl-wrapper around all of the commands ?



Rainer
-- 
===
~ Rainer Duffner - [EMAIL PROTECTED] ~
~   Freising - Munich - Germany   ~
~Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===



Re: [vchkpw] Quota Question

2004-09-09 Thread Matthew Walker
QmailAdmin doesn't seem to handle Message Count quotas. At least, my
version doesn't, and I'm pretty sure it's got everything turned on. ;)

I did have one more question.

Does vpopmail+mysql properly support per-domain quotas?


On Thu, 09 Sep 2004 19:01:34 +0200, Rainer Duffner
<[EMAIL PROTECTED]> wrote:
> Am Do, den 09.09.2004 schrieb Tom Collins um 18:18:
> > On Sep 9, 2004, at 8:42 AM, Matthew Walker wrote:
> > > Some of my users have a rather odd quota setting, while others have
> > > what looks right.
> > >
> > > Normal: 1
> > > Odd: 3000,1000C
> > >
> > > What's up with the second one? I can't find any documentation about
> > > that syntax anywhere. Is it valid? And if so, what does it mean.
> >
> > The second one should be "3000S,1000C".  S=size, C=count.  So the
> > limit is 30,000,000 bytes or 1000 messages, whichever comes first.
> 
> Hm. BTW: how do I set these in qmailadmin ?
> 
> Rainer
> --
> ===
> ~ Rainer Duffner - [EMAIL PROTECTED] ~
> ~   Freising - Munich - Germany   ~
> ~Unix - Linux - BSD - OpenSource - Security   ~
> ~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
> ===
> 
>


Re: [vchkpw] Quota Question

2004-09-09 Thread Rainer Duffner
Am Do, den 09.09.2004 schrieb Tom Collins um 18:18:
> On Sep 9, 2004, at 8:42 AM, Matthew Walker wrote:
> > Some of my users have a rather odd quota setting, while others have
> > what looks right.
> >
> > Normal: 1
> > Odd: 3000,1000C
> >
> > What's up with the second one? I can't find any documentation about
> > that syntax anywhere. Is it valid? And if so, what does it mean.
> 
> The second one should be "3000S,1000C".  S=size, C=count.  So the 
> limit is 30,000,000 bytes or 1000 messages, whichever comes first.

Hm. BTW: how do I set these in qmailadmin ?


Rainer
-- 
===
~ Rainer Duffner - [EMAIL PROTECTED] ~
~   Freising - Munich - Germany   ~
~Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===



Re: [vchkpw] Quota Question

2004-09-09 Thread Matthew Walker
Ahha. Thanks for filling me in on that. I would guess it probably
assumes a number is 'S' if it isn't specified, so that syntax would
still be valid.

At least now I know I'm not going crazy. ;)

On Thu, 9 Sep 2004 09:18:14 -0700, Tom Collins <[EMAIL PROTECTED]> wrote:
> On Sep 9, 2004, at 8:42 AM, Matthew Walker wrote:
> > Some of my users have a rather odd quota setting, while others have
> > what looks right.
> >
> > Normal: 1
> > Odd: 3000,1000C
> >
> > What's up with the second one? I can't find any documentation about
> > that syntax anywhere. Is it valid? And if so, what does it mean.
> 
> The second one should be "3000S,1000C".  S=size, C=count.  So the
> limit is 30,000,000 bytes or 1000 messages, whichever comes first.
> 
> --
> Tom Collins  -  [EMAIL PROTECTED]
> QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
> Info on the Sniffter hand-held Network Tester: http://sniffter.com/
> 
>


Re: [vchkpw] Quota Question

2004-09-09 Thread Tom Collins
On Sep 9, 2004, at 8:42 AM, Matthew Walker wrote:
Some of my users have a rather odd quota setting, while others have
what looks right.
Normal: 1
Odd: 3000,1000C
What's up with the second one? I can't find any documentation about
that syntax anywhere. Is it valid? And if so, what does it mean.
The second one should be "3000S,1000C".  S=size, C=count.  So the 
limit is 30,000,000 bytes or 1000 messages, whichever comes first.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


RE: [vchkpw] Quota question: (Qmail + Vpopmail + Courier-imap) with maildir quota.

2003-10-16 Thread steven
Title: 邮件



Maybe this 
bug come from imap. I replay your procedure and find the same problem. Try 
the newest version of couries-imapd, I have not learn its source code. 



Re: [vchkpw] Quota question: (Qmail + Vpopmail + Courier-imap) with maildir quota.

2003-10-16 Thread Kuan Yik
Title: 邮件



Hi Steven,
 
I Just figure out another problem that cause the 
quota not correct. It is about the sub folder created by IMAP. By default for 
IMAP, it will have the INBOX. And I create a sub-folder call "testing" under 
INBOX. Then, I create another sub-folder again under the "testing" call 
"testing2"
 
So will be like this
 
INBOX
-testing
--tesing2
---testing3
 
Then, I move the email message to testing3. And I 
delete the sub-folder testing1. So, all the sub-folder will be 
removed.
 
But, after removed all the sub-folder I can still 
see ( .testing.testing1.testing2.testing3) in the maildir folder...it mean the 
imap did not successfully removed all the sub-folder. So, this will cause the 
quota calculation not corect too.
 
Is this a bug too? Or am I need to apply any 
patches? I am using Outlook express to create the sub-folder and delete 
folder.
 
 

  - Original Message - 
  From: 
  steven 
  To: 'Kuan Yik' ; [EMAIL PROTECTED] 
  
  Sent: Thursday, October 16, 2003 4:20 
  PM
  Subject: RE: [vchkpw] Quota question: 
  (Qmail + Vpopmail + Courier-imap) with maildir quota.
  
  Yes! You are 
  quite right. But when new email coming vpopmail will recaculate the quota. So 
  dont worry about it! No users can save their files or mail over quota. Its a 
  harmless bug.
   
   
      
  Steven Zhuang  
    
  
  Beijing Advantage Software Limited
  http://www.adyzsoftware.com  
  
      
  
   
  Room 3010 Deshengyuan Business 
  Center    
  Tel:86-10-62374916  
  No.11 Dongbinhe Road 
  Deshengmen  
  FAX:86-10-62374724   
  Xicheng 
  District 
  Mail:[EMAIL PROTECTED]
  Beijing 
  100011,PRC 
  
   
   
   
  
  



RE: [vchkpw] Quota question: (Qmail + Vpopmail + Courier-imap) with maildir quota.

2003-10-16 Thread steven
Title: 邮件



Yes! You are 
quite right. But when new email coming vpopmail will recaculate the quota. So 
dont worry about it! No users can save their files or mail over quota. Its a 
harmless bug.
 
 
    
Steven Zhuang  
  

Beijing Advantage Software Limited
http://www.adyzsoftware.com  

    

 
Room 3010 Deshengyuan Business 
Center    
Tel:86-10-62374916  
No.11 Dongbinhe Road 
Deshengmen  
FAX:86-10-62374724   
Xicheng 
District 
Mail:[EMAIL PROTECTED]
Beijing 
100011,PRC 

 
 
 


  


Re: [vchkpw] Quota question: (Qmail + Vpopmail + Courier-imap) with maildir quota.

2003-10-16 Thread Kuan Yik
Title: 邮件



Hi Steven,
 
Thanks. Yes, you were rite. When I type 
the vuserinfo, it is re-calculate the whole directory. But, I have figure 
out something after this. 
 
As you know the vuserinfo will re-generate the 
maildirsize file once the maildirsize file not exits with the latest file size. 
So, let say if I have created a folder by using IMAP, then move the email 
message into the folder and it will append the negative into the maildirsize 
file. After that, if I delete or any other reason that the maildirsize deleted 
and run the vuserinfo again, the vuserinfo will actually regenerate the 
maildirsize again with the latest file size. Then, I delete the whole folder by 
using IMAP it won't append the negative into the maildirsize. So, I will 
get the wrong quota status. 
 
For example:
 
1. New message come into mail server. Appened the 
mail size into maildirsize file.
 
5242880S0 02536958 1
 
Do vuserinfo then give 48% used.
 
2. Create a folder and move the message into the 
folder by using IMAP.
 
5242880S0 02536958 
1 2536958    1-2536958   -1
 
Do vuserinfo then give 48% used. 
 
3. Delete the maildirsize file and run vuserinfo. 
Then it will re-generate the maildirsize file show below.
 
5242880S0 02536958 1
 
Do vuserinfo then give 48% used.
 
So, from step 1 to step 3 still provide the correct 
quota usage. But, after the the vuserinfo re-generate the maildirsize file and I 
delete the message by using IMAP it won't update 
the maildirsize. In the maildirsize still remain the same amount in step 
3.
 
5242880S0 02536958 1
 
Here, I do the vuserinfo again then it is still 
provide me the 48% used. In fact there is already no any message inside the 
maildir.
 
Is it a bug or the quota calculation not 
intelligent enough to re-calculate? That's mean the maildirsize file cannot been 
removed, else we will get the wrong quota usage?
 
Hope you can understand my poor 
explaination.
 
KY.

  - Original Message - 
  From: 
  steven 
  To: 'Kuan Yik' ; [EMAIL PROTECTED] 
  
  Sent: Thursday, October 16, 2003 12:47 
  PM
  Subject: RE: [vchkpw] Quota question: 
  (Qmail + Vpopmail + Courier-imap) with maildir quota.
  
  I dont 
  think it will happen. Check the function count_dir(char *dir_name) in source 
  file vqmaillocal.c. It walk around the maildir and sum all file size in this 
  dir.  
   
   
      
  Steven Zhuang  
    
  
  Beijing Advantage Software Limited
  http://www.adyzsoftware.com  
  
      
  
   
  Room 3010 Deshengyuan Business 
  Center    
  Tel:86-10-62374916  
  No.11 Dongbinhe Road 
  Deshengmen  
  FAX:86-10-62374724   
  Xicheng 
  District 
  Mail:[EMAIL PROTECTED]
  Beijing 
  100011,PRC 
  
   
   


RE: [vchkpw] Quota question: (Qmail + Vpopmail + Courier-imap) with maildir quota.

2003-10-15 Thread steven
Title: 邮件



I dont 
think it will happen. Check the function count_dir(char *dir_name) in source 
file vqmaillocal.c. It walk around the maildir and sum all file size in this 
dir.  
 
 
    
Steven Zhuang  
  

Beijing Advantage Software Limited
http://www.adyzsoftware.com  

    

 
Room 3010 Deshengyuan Business 
Center    
Tel:86-10-62374916  
No.11 Dongbinhe Road 
Deshengmen  
FAX:86-10-62374724   
Xicheng 
District 
Mail:[EMAIL PROTECTED]
Beijing 
100011,PRC