Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191384 - mail-mta/postfix-2.4.5 changes virtual_mailbox_limit meaning
Summary: mail-mta/postfix-2.4.5 changes virtual_mailbox_limit meaning
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-05 14:37 UTC by MarisN
Modified: 2007-11-26 12:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarisN 2007-09-05 14:37:09 UTC
In postfix-2.4.3 if in virtual_mailbox_limit_maps user has quota 0 (zero) it means "unlimited" like for virtual_mailbox_limit or mailbox_size_limit. In postfix-2.4.5 quota=0 has turned to "Use default virtual_mailbox_limit" 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'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;
 +    }
 +
 +    /*
Comment 1 lou 2007-11-22 03:58:24 UTC
I'm experiencing the same problem after upgrading to 2.4.5 today
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2007-11-24 11:24:34 UTC
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&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.
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2007-11-24 11:32:20 UTC
Ahmmm sorry, misunderstood this one... Zero is actually indeed a logically valid value and is threated as not being one... I'll fix this in VDA.
Best regards, CHTEKK.
Comment 4 Luca Longinotti (RETIRED) gentoo-dev 2007-11-25 23:49:23 UTC
mail-mta/postfix-2.4.6 should fix this and revert the meaning of quota=0 to "infinite quota". I'd very much like to hear if this indeed fixed your Postfix use cases or if there still are problems...
Best regards, CHTEKK.
Comment 5 Luca Longinotti (RETIRED) gentoo-dev 2007-11-26 12:11:18 UTC
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.