Hi,
Is it possible to make IMAP quota commands report free filesystem space? I don't want to set quota limits to individual users, but it would be nice to have an information on the bottom of Thunderbird window about free disk space (it could be percentage of the total disk size).
Anyway I have trouble with quota reporting itself, because I tried to setup a regular quota (100G) first, but somehow Thunderbird doesn't report free quota as it does in case of Gmail accounts.
I added to 20-imap.conf:
protocol imap {
mail_plugins = $mail_plugins quota imap_quota
}
and to 90-quota.conf:
plugin {
quota = maildir
quota_rule = *:storage=100G
}
What else should I add to enable reporting? (without warning emails, commands changing quota and all that stuff)
P.
Is it possible to make IMAP quota commands report free filesystem space? I don't want to set quota limits to individual users, but it would be nice to have an information on the bottom of Thunderbird window about free disk space (it could be percentage of the total disk size).
The quota is a stored fixed value. There is no built in way for it to know your drive space.
However, you can build your own mouse trap. The quota value can come from a flat file or a database. You can create a service, or crontab job, that can fetch the free drive space (subtract your percentage) and save that to your flat file or database so when each user logs in they will be given the current drive space at that time. Not exactly live data but close enough.
Anyway I have trouble with quota reporting itself, because I tried to setup a regular quota (100G) first, but somehow Thunderbird doesn't report free quota as it does in case of Gmail accounts.
I added to 20-imap.conf:
protocol imap { mail_plugins = $mail_plugins quota imap_quota }
and to 90-quota.conf:
plugin { quota = maildir quota_rule = *:storage=100G }
What else should I add to enable reporting? (without warning emails, commands changing quota and all that stuff)
Try moving the quota outside of the protocol block. mail_plugins = quota ... protocol imap { mail_plugins = $mail_plugins imap_quota ... }
Try adding a text label for the client to use. plugin { quota = maildir:Quota Limit ... }
participants (2)
-
dovecot@ptld.com
-
piotr@connecta.pl