Words by MERIGHI Marcus [Wed, Jan 03, 2007 at 04:24:27PM +0100]:
> Hallo folks,
>
> qmail-1.03 with qmail-ldap-1.03-20060201.patch database is
> openldap-server-2.3.11p4-bdb on OpenBSD 3.9 GENERIC.MP#0 i386.
>
> When I tried to set a users totals quota to 5 GB (no, I do not want to
> discuss that ;-) I found a strange behaviour:
>
> 1) Change LDAP entry of $user to new size.
> 2) empty $user/Maildir/maildirsize
> 3) send message to $user.
> 4) check content of $user/Maildir/maildirsize.
>
> I did this several times until I found this "magic" boundary:
>
> LDAP (mailQuotaSize) maildirsize (first line)
> 4290000000 4290000000S,20000C
> 4300000000 5032704S,20000C
> 16000000000 3115098112S,20000C
>
> If you increase mailQuotaSize beyond 4300000000, the values stored in
> maildirsize increase, too. But not to the values expected, as you can
> see above.
>
If you increase beyond 4Gb (4294967296) it will wraparound:
[japc@morgoth:~]$ c 4300000000-1024*1024*1024*4
5032704
(or [japc@morgoth:~]$ c 4300000000%4294967296
5032704
)
That's what happened.
The same for the 3rd line:
[japc@morgoth:~]$ c 16000000000%4294967296
3115098112
> I did a quick check with nrg4u.com, google and MARC, which did not come
> up with any explanations, bugfixes or workarounds.
>
> What am I missing here? Any hints are very welcome!
>
You're missing the limit.
> Thanks for your time,
>
> Max
>
> P.S.: I am not on the list, please include my address separately.
>
> --
> https://www.Tor.AT/~McMer/.signature
>
> Ich untersage hiermit a) die Verwendung meiner personenbezogenen Daten
> zu anderen Zwecken als den in diesem Vorgang gegenstaendlichen sowie b)
> die Weitergabe meiner personenbezogenen Daten. Die Nichtbefolgung
> dieser Anweisung ist in Oesterreich gesetzeswidrig. Siehe hiezu das
> Datenschutzgesetz (DSG) 2000 idgF., zu finden u.a. unter:
> http://www.ris.bka.gv.at/taweb-cgi/taweb?x=d&o=d&v=bgbl&d=BGBL&i=13326
--
Jose Celestino
----------------------------------------------------------------
http://www.msversus.org/ ; http://techp.org/petition/show/1
http://www.vinc17.org/noswpat.en.html
----------------------------------------------------------------
"And on the trillionth day, Man created Gods." -- Thomas D. Pate
|