<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>191384</bug_id>
          
          <creation_ts>2007-09-05 14:37 0000</creation_ts>
          <short_desc>mail-mta/postfix-2.4.5 changes virtual_mailbox_limit meaning</short_desc>
          <delta_ts>2007-11-26 12:11:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>maris.gis@gmail.com</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          <cc>r3pek@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>maris.gis@gmail.com</who>
            <bug_when>2007-09-05 14:37:09 0000</bug_when>
            <thetext>In postfix-2.4.3 if in virtual_mailbox_limit_maps user has quota 0 (zero) it means &quot;unlimited&quot; like for virtual_mailbox_limit or mailbox_size_limit. In postfix-2.4.5 quota=0 has turned to &quot;Use default virtual_mailbox_limit&quot; thus breaking any existing postfix virtual_mailbox_limit_maps that still assume 0=unlimited.

Reproducible: Always



Expected Results:  
Quota setting virtual_mailbox_limit_maps should act similar to mailbox_size_limit.

It&apos;s possibly is related to changes in VDA patch around line 848:

@@ -843,13 +848,13 @@
 +            }
 +        }
 +        else {
-+            /* Invalid limit size (negative), or zero. Set n to 0. */
-+            n = 0;
++            /* Invalid limit size (negative), or zero. Use default virtual_mailbox_limit. */
++            n = var_virt_mailbox_limit;
 +        }
 +    }
 +    else {
-+        /* There is no limit in the maps. Set n to 0. */
-+        n = 0;
++        /* There is no limit in the maps. Use default virtual_mailbox_limit. */
++        n = var_virt_mailbox_limit;
 +    }
 +
 +    /*</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>whitehatcheck@yahoo.com</who>
            <bug_when>2007-11-22 03:58:24 0000</bug_when>
            <thetext>I&apos;m experiencing the same problem after upgrading to 2.4.5 today</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2007-11-24 11:24:34 0000</bug_when>
            <thetext>Postfix 2.4 series includes the new VDA-NG, a rewritten and improved version of VDA.
See http://sourceforge.net/mailarchive/forum.php?thread_name=46A5BEBC.5090407%40gmail.com&amp;forum_name=vda-users
for an explanation of this particular change.
Basically it is a fix for incorrect behavior that VDA displayed in older versions. 
If you need unlimited quota for a maildir, set it to 0 explicitly for that email.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2007-11-24 11:32:20 0000</bug_when>
            <thetext>Ahmmm sorry, misunderstood this one... Zero is actually indeed a logically valid value and is threated as not being one... I&apos;ll fix this in VDA.
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2007-11-25 23:49:23 0000</bug_when>
            <thetext>mail-mta/postfix-2.4.6 should fix this and revert the meaning of quota=0 to &quot;infinite quota&quot;. I&apos;d very much like to hear if this indeed fixed your Postfix use cases or if there still are problems...
Best regards, CHTEKK.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chtekk@gentoo.org</who>
            <bug_when>2007-11-26 12:11:18 0000</bug_when>
            <thetext>Ok I just finished all my tests and added mail-mta/postfix-2.4.6-r1 to the tree, which correctly fixes this also for mailbox quotas (and not only maildirs).
Best regards, CHTEKK.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>