bgware: vmailmgr vchattr softquota and hardquota only support up to unsigned int or 65535 in len or 4294967295-1 value


Previous by date: 2 Oct 2016 05:23:24 -0000 mailfront : only allow authenticated user address as MAIL FROM, (Return-Path) ?, Olivier Mueller
Next by date: 2 Oct 2016 05:23:24 -0000 Re: Send messages from /var/spool/nullmailer/queue to local location (e.g. ~/Mail), Bruce Guenter
Previous in thread:
Next in thread:

Subject: vmailmgr vchattr softquota and hardquota only support up to unsigned int or 65535 in len or 4294967295-1 value
From: Giam Teck Choon ####@####.####
Date: 2 Oct 2016 05:23:24 -0000
Message-Id: <2d67a2f6-8921-2972-d711-1990d2b7a175@choon.net>

Hi Bruce,

Do you intend to support more than 4GB allocation for hard/soft quota in 
vmailmgr client?  This is getting more and more common when users try to 
set quotas for their mailbox to more than 4GB since these days disk 
space capacity increased (hardware getting cheaper and cheaper)?

Recently one of my client tried to set some of their domain mailboxes to 
5GB or more than 4GB and unable to.  Here are some real example:

$ vchattr -q 4294967295 tt123
vchattr: attribute for user 'tt123' successfully changed.
$ dumpvuser tt123
Name: tt123
Encrypted-Password: <SNAP>
Directory: ./users/tt123
Hard-Quota: N/A
Soft-Quota: N/A
Message-Size-Limit: N/A
Message-Count-Limit: N/A
Creation-Time: 1475227036
Expiry-Time: N/A
Has-Mailbox: true
Mailbox-Enabled: true

Trying to set softquota to 4294967295 failed and result is N/A when 
doing dumpvuser to check as above.  When I try -1 value of 4294967295 = 
4294967294 I can without issue.  So this is something related to 
unsigned int type since it hold up to 4294967295 (65535).

I searched in bglibs source and found something related to vmailmgr 
especially in ./vmailmgr/vpwentry.h and ./vmailmgr/client.h then noticed 
that VCLIENT_MAXLEN is defined as 65535 in ./vmailmgr/client.h and in 
./vmailmgr/vpwentry.h has struct vpwentry that declare unsigned 
hardquota and softquota.

Thanks.

Kindest regards,
Giam Teck Choon


Previous by date: 2 Oct 2016 05:23:24 -0000 mailfront : only allow authenticated user address as MAIL FROM, (Return-Path) ?, Olivier Mueller
Next by date: 2 Oct 2016 05:23:24 -0000 Re: Send messages from /var/spool/nullmailer/queue to local location (e.g. ~/Mail), Bruce Guenter
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.21.