[Dovecot] Quota by max file size
Is It possible have a quota for max file size?
Per example, If the client try to save a very big mail as draft, p.e. 100M, and the limit of Exim configuration is 20M, the mail is really saved in Maildir at sent or Draft but it can't be sent.
I think maybe is easy to create a plugin, get the saved stream size and then if it is over quota max file size, abort save and notice to use about the limit, but at first I want to know that really daesn't similar exists.
On 26.11.2010, at 12.26, Antonio Perez-Aranda wrote:
Is It possible have a quota for max file size?
No. Also I don't think that's really about quota, since this could be useful even when users have no quota.
I think maybe is easy to create a plugin, get the saved stream size and then if it is over quota max file size, abort save and notice to use about the limit, but at first I want to know that really daesn't similar exists.
Yes, should be pretty easy. You can see quota_save_begin() how it checks quota before saving actually starts.
participants (2)
-
Antonio Perez-Aranda
-
Timo Sirainen