Hi everybody, I'm currently working on the quota limits in dovecot, and Maildir quota is working fine, it reports the correct numbers. But our users also have additional space where they can put files, and I would like both to have the same quota of 2 GB. So mails + files should not exceed 2 GB. What is the best way to solve this? I already tried the following: - I put the files in /path/to/user/Maildir/Storage/ , where /path/to/ user/Maildir is the users mail directory. But obviously dovecot does not see that files and gives the wrong numbers. - I tried to use the fs quota backend ("Disk quota"), but I don't get it running, I always get an empty result: dovecot -n: plugin: quota: maildir:User quota quota_rule: *:storage=2G quota_rule2: *:messages=50000 quota_rule3: Trash:storage=10%% quota_rule4: Spam:storage=20%% quota2: fs:Disk quota quota2_rule: *:storage=2G quota2_rule2: *:messages=50000 TAG GETQUOTA "User quota" * QUOTA "User quota" (STORAGE 473178 2048000 MESSAGE 20693 50000) TAG OK Getquota completed. TAG GETQUOTA "Disk quota" * QUOTA "Disk quota" () TAG OK Getquota completed. I don't know why fs is not working. /path/to/user/Maildir is a simple local ext4 partition. In the future it will be a nfs share. Can you point me to a solution, so the user has a limit for both, mails and additional files? Where is the best way to place the additional files? Michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 12 Apr 2010, Michael Kliewe wrote:> But our users also have additional space where they can put files, and I > would like both to have the same quota of 2 GB. So mails + files should not > exceed 2 GB.I suppose you will require file system quota here. Or you store the extra-data via IMAP. :-) Taking a stab from the non-IMAP side: How shall the limit be enforced when the other data is storred?> I don't know why fs is not working. /path/to/user/Maildir is a simple local > ext4 partition. In the future it will be a nfs share.Do you have: a) system users b) quota initialized on the file system (quotaon) c) quota database updated (quotacheck) d) quota assigned to an user (quota -v user, edquota user, quotatool) You have just one quota, configure Dovecot to use just the fs quota. Read the mail archive about NFS quota, I remember some glitches. Regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS8Qdjr+Vh58GPL/cAQLwXwf/QkINEa3u/75YTfrMRJDpmvDbev83yPFP U2Lj11zOyEov0Wb6voKeOJFYiJC4dLWbtq/lEFwwzWf+Er6QXO8d7WHC3tR9uyNc WryNDUMe7YdHdvlbyY2SsdXSJbbxg7rEf4/9SdM4lFTxa85xqTQvz4WrgmCMJnL2 +8eIjVKFheXgsA+sf02gG9uL8BKuvzPq7xr0mohEXVG8e/8375nbBZDDNOVOuIN6 wVjokl4BfZm8zYt8mEwF3j/F01d2MeVs17JBQs439IgKtplVOiWu7MMDA2NXjvDA 4N9Hejo1X0OlfToZOBJ+LVUdBnlnmA5TElVLY+3i2mZkJZjWOBOTJg==sUBs -----END PGP SIGNATURE-----