Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Alessio Cecchi
Il 08/02/2011 16:09, Matt Brookings ha scritto:
 On 02/08/2011 01:19 AM, Alessio Cecchi wrote:
   $ ./configure --enable-mysql-limits --enable-auth-module=mysql
 --enable-logging=p --enable-maildrop --enable-valias
 
 Ah, I missed the custom vlimits stuff in the MySQL module.  I fixed
 this in Subversion, and put a new 5.4.33 tarball on SourceForge.

Hi Matt,

I did some tests on your fix. Redownload and Rebuild vpopmail 5.4.33 and
now works fine with 2GB quota, but not with more :-(

For example, if I try to set quota to 4GB:

with vmoduser works fine (as usual)

vpopmail-5.4.33# /home/vpopmail/bin/vmoduser -q4096M test.com
vpopmail-5.4.33# /home/vpopmail/bin/vuserinfo ales...@test.com | grep quota
quota: 4294967296S

But with vmoddomlimits I can not set quota over 2GB:

vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4069M test.com
or with
vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4294967296 test.com

vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -S test.com | grep Quota
Domain Quota: 0 MB
Default User Quota: 2147483647 bytes

Quota is always 2GB.
Thnaks
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d5548bb32717298244466!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Alessio Cecchi
Il 08/02/2011 22:36, Matt Brookings ha scritto:
 On 02/08/2011 02:48 PM, Matt Brookings wrote:
[...]
 http://www.mail-archive.com/vchkpw@inter7.com/msg27754.html
 
 Working on this.
 
 I've committed changes to Subversion, and uploaded a tarball to
 SourceForge that add the disable_maildrop flag, as well as fix a bug
 in the MySQL module that didn't allow for large quotas in the limits
 configuration.


Hi Matt,

disable_maildrop flags seems ok now, but please add to doc/UPGRADE:

ALTER TABLE `limits` ADD `disable_maildrop` TINYINT(1) DEFAULT '0' NOT
NULL AFTER `disable_spamassassin`;

otherwise you will always get an error when try to use vpopmail/bin tools.

Thanks
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d55494e32712033421181!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/11/2011 08:33 AM, Alessio Cecchi wrote:
 But with vmoddomlimits I can not set quota over 2GB:
 
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4069M test.com
 or with
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4294967296 test.com
 
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -S test.com | grep Quota
 Domain Quota: 0 MB
 Default User Quota: 2147483647 bytes
 
 Quota is always 2GB.

Oh, I may not have mentioned, there had to be a database schema change
for MySQL limits to work.  You can either drop the entire limits
table, and vpopmail will re-create it, or you can modify the table.
Check out vmysql.h for the layout.  Notice the disable_maildrop
addition, and the changes from INT to BIGINT.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1VSrIACgkQIwet2/rgZyypcwCfQO6ubgLrslG0bU0zqa3omfGW
/jQAmgI5pcq+MhknA2/HdMBQvyUIWhDy
=aAi5
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/11/2011 08:35 AM, Alessio Cecchi wrote:
 Il 08/02/2011 22:36, Matt Brookings ha scritto:
 On 02/08/2011 02:48 PM, Matt Brookings wrote:
 [...]
 http://www.mail-archive.com/vchkpw@inter7.com/msg27754.html

 Working on this.

 I've committed changes to Subversion, and uploaded a tarball to
 SourceForge that add the disable_maildrop flag, as well as fix a bug
 in the MySQL module that didn't allow for large quotas in the limits
 configuration.
 
 
 Hi Matt,
 
 disable_maildrop flags seems ok now, but please add to doc/UPGRADE:
 
 ALTER TABLE `limits` ADD `disable_maildrop` TINYINT(1) DEFAULT '0' NOT
 NULL AFTER `disable_spamassassin`;
 
 otherwise you will always get an error when try to use vpopmail/bin tools.

I added the ALTER commands for the quota fields as well:

ALTER TABLE `limits` MODIFY `diskquota` BIGINT UNSIGNED NOT NULL
DEFAULT 0;
ALTER TABLE `limits` MODIFY `maxmsgcount` BIGINT UNSIGNED NOT NULL
DEFAULT 0;
ALTER TABLE `limits` MODIFY `defaultquota` BIGINT UNSIGNED NOT NULL
DEFAULT 0;
ALTER TABLE `limits` MODIFY `defaultmaxmsgcount` BIGINT UNSIGNED NOT
NULL DEFAULT 0;

These will go into the final release.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1VTEQACgkQIwet2/rgZyz3ygCfaJevtikFAWxx05VMQMF/MQM3
+HEAnRNBNUbjVC9kRTqXjqX8Y8EiGCsz
=uHfL
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Alessio Cecchi
Il 11/02/2011 15:41, Matt Brookings ha scritto:
 On 02/11/2011 08:33 AM, Alessio Cecchi wrote:
 But with vmoddomlimits I can not set quota over 2GB:
 
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4069M test.com
 or with
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -q 4294967296 test.com
 
 vpopmail-5.4.33# /home/vpopmail/bin/vmoddomlimits -S test.com | grep Quota
 Domain Quota: 0 MB
 Default User Quota: 2147483647 bytes
 
 Quota is always 2GB.
 
 Oh, I may not have mentioned, there had to be a database schema change
 for MySQL limits to work.  You can either drop the entire limits
 table, and vpopmail will re-create it, or you can modify the table.
 Check out vmysql.h for the layout.  Notice the disable_maildrop
 addition, and the changes from INT to BIGINT.

Ok, now, after delete limits table vpopmail recreate it for me and
default quota works fine :-) I'm very happy.

What is now the highest quota manageable in a vpopmail + qmail (and
dovecot as imap server) installation ?

Thanks
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d554dc132716993735716!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/11/2011 08:54 AM, Alessio Cecchi wrote:
 Ok, now, after delete limits table vpopmail recreate it for me and
 default quota works fine :-) I'm very happy.
 
 What is now the highest quota manageable in a vpopmail + qmail (and
 dovecot as imap server) installation ?

vpopmail will handle a 64bit unsigned integer:

  $ echo '2^64-1' | bc
  18446744073709551615

That's a pretty big quota.

I had to make quite a few changes for the larger quota size.  Please
let me know if you run across any problems.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1VTwoACgkQIwet2/rgZyw4cwCeMsrOq+rkhyE0jhiA0aNg7Zmk
Cb8AnRlLyb5tANVBoFmEVsG8kBxBAQty
=ftIy
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-11 Thread Alessio Cecchi
Il 11/02/2011 16:00, Matt Brookings ha scritto:
 On 02/11/2011 08:54 AM, Alessio Cecchi wrote:
 Ok, now, after delete limits table vpopmail recreate it for me and
 default quota works fine :-) I'm very happy.
 
 What is now the highest quota manageable in a vpopmail + qmail (and
 dovecot as imap server) installation ?
 
 vpopmail will handle a 64bit unsigned integer:
 
   $ echo '2^64-1' | bc
   18446744073709551615

Very very big :-)

 That's a pretty big quota.
 
 I had to make quite a few changes for the larger quota size.  Please
 let me know if you run across any problems.

I will run this version on test server and I will tell you if I have
problems.

Thanks for your disponiblity
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d5550f632711859565367!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-08 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/08/2011 01:19 AM, Alessio Cecchi wrote:
   $ ./configure --enable-mysql-limits --enable-auth-module=mysql
 --enable-logging=p --enable-maildrop --enable-valias

Ah, I missed the custom vlimits stuff in the MySQL module.  I fixed
this in Subversion, and put a new 5.4.33 tarball on SourceForge.

 When -S report 18446744071562067968 bytes in mysql limit's table -
 defaultquota report: -2147483648 (the same value before vpopmail
 upgrade).
 
 Note that if I update quota manually in mysql limit's table -
 defaultquota vmoddomlimits -S test.com show the right quota.

Remove any negative values from the database.  These values are not
supported.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1RXKIACgkQIwet2/rgZyxVsgCeJunqBT1buxT0liEA6j3fGk61
k5sAn2v6XhpdJVYxlsV9v8JdfIHrnt1H
=T0kM
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-08 Thread Alessio Cecchi

Il 08/02/2011 16:09, Matt Brookings ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/08/2011 01:19 AM, Alessio Cecchi wrote:

   $ ./configure --enable-mysql-limits --enable-auth-module=mysql
--enable-logging=p --enable-maildrop --enable-valias


Ah, I missed the custom vlimits stuff in the MySQL module.  I fixed
this in Subversion, and put a new 5.4.33 tarball on SourceForge.


Many thanks Matt. I will try it as soon as possible.


When -S report 18446744071562067968 bytes in mysql limit's table -
defaultquota report: -2147483648 (the same value before vpopmail
upgrade).

Note that if I update quota manually in mysql limit's table -
defaultquota vmoddomlimits -S test.com show the right quota.


Remove any negative values from the database.  These values are not
supported.


Sure ...

Matt, I have find another bug in vmoddomlimits with MySQL configuration.

If you try to set the no maildrop flag with -g m nothing changes. 
Plus in MySQL vpopmail.limits table does not exist :-) I do not know 
whether other fields are missing from the database.


Here you can find another mail about this problem:

http://www.mail-archive.com/vchkpw@inter7.com/msg27754.html

if you can fix it I thank you so much.
--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d5180b932711584117789!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-08 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/08/2011 11:43 AM, Alessio Cecchi wrote:
 When -S report 18446744071562067968 bytes in mysql limit's table -
 defaultquota report: -2147483648 (the same value before vpopmail
 upgrade).

 Note that if I update quota manually in mysql limit's table -
 defaultquota vmoddomlimits -S test.com show the right quota.

 Remove any negative values from the database.  These values are not
 supported.

I found some more work that needs to be done to get vlimits working
with MySQL.  I'll have these out shortly, along with the fix for the
maildrop flag.

 Matt, I have find another bug in vmoddomlimits with MySQL configuration.
 
 If you try to set the no maildrop flag with -g m nothing changes.
 Plus in MySQL vpopmail.limits table does not exist :-) I do not know
 whether other fields are missing from the database.
 
 Here you can find another mail about this problem:
 
 http://www.mail-archive.com/vchkpw@inter7.com/msg27754.html

Working on this.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1RrBkACgkQIwet2/rgZyxXqACfWaP78ZJBrF7xUjl5tKpJewW1
erQAn1qZx8xbtzlmq6nVrALoh+zMIrDj
=5kDJ
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-08 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/08/2011 02:48 PM, Matt Brookings wrote:
 On 02/08/2011 11:43 AM, Alessio Cecchi wrote:
 When -S report 18446744071562067968 bytes in mysql limit's table -
 defaultquota report: -2147483648 (the same value before vpopmail
 upgrade).

 Note that if I update quota manually in mysql limit's table -
 defaultquota vmoddomlimits -S test.com show the right quota.

 Remove any negative values from the database.  These values are not
 supported.
 
 I found some more work that needs to be done to get vlimits working
 with MySQL.  I'll have these out shortly, along with the fix for the
 maildrop flag.
 
 Matt, I have find another bug in vmoddomlimits with MySQL configuration.
 
 If you try to set the no maildrop flag with -g m nothing changes.
 Plus in MySQL vpopmail.limits table does not exist :-) I do not know
 whether other fields are missing from the database.
 
 Here you can find another mail about this problem:
 
 http://www.mail-archive.com/vchkpw@inter7.com/msg27754.html
 
 Working on this.

I've committed changes to Subversion, and uploaded a tarball to
SourceForge that add the disable_maildrop flag, as well as fix a bug
in the MySQL module that didn't allow for large quotas in the limits
configuration.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1Rt3oACgkQIwet2/rgZyzW1QCdGpNe7TlhpmDmLlaS8uD5D4lu
7RcAmgPnkw7wzD6+7y99RuTmiFS8nIiA
=a6PG
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-07 Thread Alessio Cecchi
Il 03/02/2011 17:38, Matt Brookings ha scritto:
 On 02/01/2011 10:17 AM, Alessio Cecchi wrote:
 with vpopmail 5.4.32 (but also older version) I have problem to set
 the quota for domains to 2GB (2048MB)
 
 If I set quota like this:
 
 /home/vpopmail/bin/vmoddomlimits -q2147483648 domain.com
 or
 /home/vpopmail/bin/vmoddomlimits -q2048M domain.com
 
 /home/vpopmail/bin/vmoddomlimits -S domain.com show a wrong quota of:
 
 Default User Quota: -2147483648 bytes
 
 If I set quota to:
 
 
 /home/vpopmail/bin/vmoddomlimits -q2147483647 domain.com
 
 works fine:
 
 Default User Quota: 2147483647 bytes
 
 Is vpopmail/vmoddomlimits unable to manage quota more than 2GB but can
 manage quota of 2GB -1 byte?
 
 Please try the 5.4.33 development version.
 Thanks!

Hi Matt,

thank you for your interesting in my problem, but I think the problem is
worse now :-)

# /home/vpopmail/bin/vmoddomlimits -q 1024M qboxmail.com
# /home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default User
Quota

Default User Quota: 1073741824 bytes

and works fine,

but with 2048M (or 2147483648 byte)

www:~# /home/vpopmail/bin/vmoddomlimits -q 2048M qboxmail.com
www:~# /home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default
User Quota

Default User Quota: 18446744071562067968 bytes

Very very big quota!

And for quota over 2GB:

www:~# /home/vpopmail/bin/vmoddomlimits -q 4096M qboxmail.comwww:~#
/home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default User Quota

Default User Quota: 0 bytes

vmoduser with -q 4096M works fine.

Thanks
-- 
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d4fbd3532711933788344!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2011 03:36 AM, Alessio Cecchi wrote:
 but with 2048M (or 2147483648 byte)
 
 www:~# /home/vpopmail/bin/vmoddomlimits -q 2048M qboxmail.com
 www:~# /home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default
 User Quota
 
 Default User Quota: 18446744071562067968 bytes

Odd.  Looking into this.
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1QFwwACgkQIwet2/rgZyy2ugCeOkOnIYvOXrzzAJXm69VBOy0B
aLQAoIj7+VEJgvcuHLWEKdrZxA7Pvj0L
=iY92
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-07 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2011 10:00 AM, Matt Brookings wrote:
 On 02/07/2011 03:36 AM, Alessio Cecchi wrote:
 but with 2048M (or 2147483648 byte)
 
 www:~# /home/vpopmail/bin/vmoddomlimits -q 2048M qboxmail.com
 www:~# /home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default
 User Quota
 
 Default User Quota: 18446744071562067968 bytes
 
 Odd.  Looking into this.

Hmm.  Are you sure you're using 5.4.33?

# ~vpopmail/bin/vmoddomlimits -v
version: 5.4.33

# ~vpopmail/bin/vmoddomlimits -q 2048M test.com
# ~vpopmail/bin/vmoddomlimits -S test.com
Default User Quota: 2147483648 bytes

Can you please post the
~vpopmail/domains/qboxmail.com/.qmailadmin-limits file contents?
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1QF7IACgkQIwet2/rgZyyvVACfRx+7Fsvjo6RLASCY9QNn6PsN
m7kAn2Bs9XyszBXUYAnZvDaiUxPtiCmB
=aArr
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-07 Thread Alessio Cecchi

Il 07/02/2011 17:02, Matt Brookings ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2011 10:00 AM, Matt Brookings wrote:

On 02/07/2011 03:36 AM, Alessio Cecchi wrote:

but with 2048M (or 2147483648 byte)



www:~# /home/vpopmail/bin/vmoddomlimits -q 2048M qboxmail.com
www:~# /home/vpopmail/bin/vmoddomlimits -S qboxmail.com | grep Default
User Quota



Default User Quota: 18446744071562067968 bytes


Odd.  Looking into this.


Hmm.  Are you sure you're using 5.4.33?

# ~vpopmail/bin/vmoddomlimits -v
version: 5.4.33


Yes:

www:~# /home/vpopmail/bin/vmoddomlimits -v | grep version
version: 5.4.33

www:/var/src/vpopmail-5.4.33# head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by vpopmail configure 5.4.33, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --enable-mysql-limits --enable-auth-module=mysql 
--enable-logging=p --enable-maildrop --enable-valias


www:/var/src/vpopmail-5.4.33# uname -a
Linux www.test.com 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 
x86_64 GNU/Linux




# ~vpopmail/bin/vmoddomlimits -q 2048M test.com
# ~vpopmail/bin/vmoddomlimits -S test.com
Default User Quota: 2147483648 bytes

Can you please post the
~vpopmail/domains/qboxmail.com/.qmailadmin-limits file contents?


I'm using mysql limits, could be this the problem?

When -S report 18446744071562067968 bytes in mysql limit's table - 
defaultquota report: -2147483648 (the same value before vpopmail upgrade).


Note that if I update quota manually in mysql limit's table - 
defaultquota vmoddomlimits -S test.com show the right quota.


Thanks
--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4d50eea532713707094004!



Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-03 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/01/2011 10:17 AM, Alessio Cecchi wrote:
 with vpopmail 5.4.32 (but also older version) I have problem to set
 the quota for domains to 2GB (2048MB)
 
 If I set quota like this:
 
 /home/vpopmail/bin/vmoddomlimits -q2147483648 domain.com
 or
 /home/vpopmail/bin/vmoddomlimits -q2048M domain.com
 
 /home/vpopmail/bin/vmoddomlimits -S domain.com show a wrong quota of:
 
 Default User Quota: -2147483648 bytes
 
 If I set quota to:
 
 
 /home/vpopmail/bin/vmoddomlimits -q2147483647 domain.com
 
 works fine:
 
 Default User Quota: 2147483647 bytes
 
 Is vpopmail/vmoddomlimits unable to manage quota more than 2GB but can
 manage quota of 2GB -1 byte?

Please try the 5.4.33 development version.
Thanks!
- -- 
/*
Matt Brookings m...@inter7.com   GnuPG Key FAE0672C
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1K2h0ACgkQIwet2/rgZywiawCfcV4mqOy+Yb4MHVzgRtRzURlW
EHsAn3ia3Or+J7sUmBFoGBCwqYWb1YMU
=mfmn
-END PGP SIGNATURE-


Re: [vchkpw] Strane problem with vmoddomlimits and 2GB limit

2011-02-02 Thread Tom Collins
On Feb 1, 2011, at 8:17 AM, Alessio Cecchi wrote:
 Is vpopmail/vmoddomlimits unable to manage quota more than 2GB but can manage 
 quota of 2GB -1 byte?

Some quota code uses a signed 32-bit value so, yes, 2GB - 1 is the maximum you 
can represent in that datatype.

I believe more recent versions of vpopmail have a new vusage client/daemon to 
manage quotas, and it supports larger quotas.

Keep in mind that the old maildirsize standard is implemented in multiple 
locations.  vdelivermail, qmail-local, your POP and IMAP server, QmailAdmin, 
vmoddomlimits, vmoduser, etc.  All of them would need to be reviewed to ensure 
they work correctly for larger sizes.

One proposed fix is to switch to unsigned 32-bit, but that only gets you to 
4GB.  I think others have proposed 64-bits, or even just storing kbytes instead 
of bytes in the file.  I'm sure others will chime in with advice and guidance.

-Tom




!DSPAM:4d498e8032711471915979!