[Dovecot] Quota by max file size

Timo Sirainen tss at iki.fi
Fri Nov 26 15:33:23 EET 2010

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.

More information about the dovecot mailing list