MAILDIRQUOTA(7)
π MAILDIRQUOTA π (section 7 of the manual, bestie)
okay so this is the maildirquota page, and it's all about voluntary Maildir quotas β¨ yep, voluntary, like when you promise yourself you'll only have one snack and thenβ¦ you have four. Anyway. Author vibes: S. Varshavchik. Let's get into it π«Ά
β¨ SYNOPSIS β¨
maildirmake {-q} {10000000S} {./Maildir}
πΈ DESCRIPTION πΈ
So maildrop has a manual quota enforcement implementation β the kind that does use the quota facilities of the host operating system (aka filesystem-based quotas). This is an option that gets set at configuration time, and ngl it can be disabled. π
Using filesystem quotas sometimes leads to problems, and it's giving chaos energy π Once a hard quota is hit, most commands issued by mail clients fail β including some commands that poorly-written mail software may not expect to fail, which means it just cannot gracefully handle that unexpected failure. embarrassing for them, honestly.
With manual quotas tho? The only operations that fail are the ones that most mail clients already expect to fail when the mailbox is full. β¨ Slay. But here's the catch: filesystem-based quotas cannot be used in some situations, like virtual mailboxes. So if this experimental feature is enabled, approximate quota enforcement can be implemented by maildrop or deliverquota to whatever extent it's possible to do so. Quotas get enabled by the -q option to maildirmake. And both maildrop and deliverquota will observe any maildirmake-requested quota. π
π₯ LIMITATIONS (read this part fr fr) π₯
This quota mechanism will only work as long as maildrop (or deliverquota) are the only applications that deliver messages to the maildir β OR as long as other applications implement the same quota enforcement mechanism. The quota enforcement mechanism is described separately in the README.maildirquota.html file in the source code distribution. π
Quota enforcement will still work, to some extent, if there are other applications that deliver or modify messages in the maildir. However, quota enforcement may not kick in immediately when the maildir goes over quota β in fact, the maildir can go over quota by a noticeable amount. π But eventually, as long as maildrop or deliverquota are responsible for delivering the majority of messages, quota enforcement will kick in. Also, other sources of messages may also result in noticeable performance degradation, because quota recalculation will become noticeably more expensive. π
Also keep in mind that this quota mechanism is generally useless if mail recipients have direct access to their maildirs. yeah. useless. periodt.
And finally β even under the best conditions, this quota enforcement does have a small chance of a race condition where a maildir will go over quota by some amount. πβοΈ maildirs are designed for speed, and this quota implementation was designed to have as little additional overhead as possible, compared to regular maildirs. To enforce an exact quota you would have to use some kind of a locking facility, which will impose a drastic performance degradation on the overall maildir performance. A decision has been made to avoid locking, with the only negative side effect being a possibility of going over quota in very low probability situations. that's the tradeoff, bestie π€
A way to minimize the risk of going over quota is to set reasonable quotas, in relation to maximum message sizes supported by your mail server. If you set your maildir quota to five gigabytes, for example, it makes very little sense to configure your mail server to accept messages up to three gigabytes in size. Your maildir quota should be chosen so that it makes sense when compared to the maximum message size allowed by your mail server. π§ β¨
π FOLDERS π
This quota implementation is compatible with a popular extension to maildir which defines individual mail folders within a single maildir. ποΈ BUT β and this is the important part β in order to create a compatible folder, you MUST use the maildirmake command that comes with maildrop, and you MUST use the -f option to maildirmake, giving the name of the folder. Do not use maildirmake and specify the directory name of the maildir folder. Quota enforcement will not work if you do that. π no cap.
π SEE ALSO π
maildrop(1)[1]maildirmake(1)[2]maildropfilter(5)[3]deliverquota(8)[4]
π AUTHOR π
Sam Varshavchik Author
π NOTES π
maildrop(1)http://www.courier-mta.org/maildrop.htmlmaildirmake(1)http://www.courier-mta.org/maildirmake.htmlmaildropfilter(5)http://www.courier-mta.org/maildropfilter.htmldeliverquota(8)http://www.courier-mta.org/deliverquota.html
okay that's the whole page, you ate it up π
this came from the Courier Mail Server, dated 01/10/2026, and honestly? iconic. go set a reasonable quota and text me back ππ¦π
π¦ where this page comes from
- ubuntu stonking: maildrop 4.0.4-1 Β· GPL-3~with-OpenSSL-exception
- Copyright 1998 - 2008 S. Varshavchik. See COPYING for -->
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms