-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 11 Jan 2013, Andreas Oster wrote:
Am 10.01.2013 15:30, schrieb Steffen Kaiser:
On Wed, 9 Jan 2013, Andreas Oster wrote:
namespace { type = private separator = . prefix = Archives. location = maildir:/var/vmail/archive/%Ln/Maildir subscriptions = yes list = children inbox = no }
I configured the quota plugin in the following way:
plugin { quota = maildir:User quota:ns= quota2 = maildir:Archive quota:ns=Archives. quota_rule = *:storage=1G quota_rule2 = ns=Archives.:ignore }
unfortunately this does not give the desired result. Folders under the Archives namespace use the same quota as INBOX.
If I understand the Wiki correctly, you need to write:
quota2_rule = *:storage=10G
The "quota2"_rule# settings apply to the "quota2" root by namespace. Whereas the "quota"_rule# settings apply to the default, the first quota root.
unfortunately this does not work. when I configure it the way you have proposed the 10G quote will be assigned to the base namespace (INBOX) the Archives namespace has no quota assigned.
I tried this setup:
namespace { type = private separator = . prefix = Archive. location = mdbox:/home/%u/archive #subscriptions = no #list = children }
plugin { quota = dict:User quota::proxy::quota quota2 = dict:Archive quota:ns=Archive.:proxy::quota quota2_rule = *:storage=1048576 }
telnet localhost 143 1 login .. .. 2 list "" *
- LIST (\HasNoChildren \Sent) "." "Sent"
- LIST (\HasNoChildren \Trash) "." "Trash"
- LIST (\HasNoChildren \Junk) "." "Junk"
- LIST (\HasNoChildren \Drafts) "." "Drafts"
- LIST (\HasNoChildren) "." "INBOX"
- LIST (\Noselect \HasChildren) "." "Archive"
- LIST (\HasNoChildren) "." "Archive.Test" 2 OK List completed. 2 getquotaroot ""
- QUOTAROOT "" "User quota" "Archive quota"
- QUOTA "User quota" (STORAGE 259 7540259)
- QUOTA "Archive quota" (STORAGE 2109 1048576) 2 OK Getquotaroot completed.
So the configuration is running in Dovecot v2.1.13. The value of "User quota" comes from LDAP. What I did not tested was, if the quota is actually calculated and tracked in the database.
Kind regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUPZrD13r2wJMiz2NAQIibgf9Gdf9esxTnKRuA1cDV9fS3leQep06U6Lt C70Zbqasi0E8ePow3qHZlTljJZm1xJGvRhBw6C6KD6FM6s48erjBL2yNTT37RHoJ F1vJqXyZ23MYOOf5fBRQ2HkgtlBVYnivG3Gtqliz0NBIABZzR9IE31rham1PmUDa Dgi2EBUepJyVU7WmK5ZPjaXPMvguicboSA10VMh/RQkd+1c1dLjNisVSzKZ+h2/6 lIlXLHb0uyPIecbni6j/bmkkp3Ps3lTQZ7mfoFGTp7WtVCIdJBFpGkPMXm6R3WAg QQoIqOyDiAIZwShWMx5vfVE9fcmMDbulvpXW83laAXARwuIVAC7+jQ== =lVxH -----END PGP SIGNATURE-----