DELIVERQUOTA(8)
π NAME π
deliverquota β drop mail into a maildir, but make it respect a quota, bestie π
β¨ SYNOPSIS β¨
deliverquota [-c] [-w percent] [-W filename] {maildir} {quota}
π DESCRIPTION π
okay so deliverquota delivers mail into a maildir, and it actually cares about whatever software-imposed quota is sitting on that maildir. this whole hand-rolled quota sitch is explained over in maildirquota(7) [1] and maildirmake(1) [2], so go read those if you want the lore π§
instead of telling your mail server to yeet the message straight into a maildir, you set your mail server up to run the deliverquota program to do the delivery β and you hand it the location of the maildir as the argument. slay β¨
the second argument, quota, is optional. if you do pass it, quota sets a brand new quota setting for this maildir. passing quota is literally the same thing as running maildirmake(1) [2] with the -q option π that said, the second argument is considered obsolete and might get removed in the future, soβ¦ don't get too attached π
deliverquota reads the message from standard input and delivers it to maildir. and get this β maildir can point directly at a <highlight>maildir folder</highlight>, not just the main maildir (as long as that folder was created by the maildirmake(1) [2] command). iykyk π¦
the -c option auto-creates the maildir and every missing parent subdirectory (think mkdir -p energy π
).
β οΈ bestie, use -c with caution. for real, fr fr.
the -w N option drops a warning message into the maildir if the maildir has a quota setting, and after the message was successfully delivered the maildir was at least N percent full. that warning message gets copied from the file you name with the -W option β or from /etc/courier/quotawarnmsg if you didn't specify -W. the "Date:" and "Message-Id:" headers get added onto the message too π¬ and the warning keeps repeating every 24 hours (at least) until the maildir drops below N percent full. not it being persistent π
π«Ά RETURN CODE π«Ά
so here's the vibe check: deliverquota delivers the message to the maildir and bounces out with exit code 0 if the message can be delivered without going over quota. ate. β¨
if the maildir is over its specified quota, tho? π
- the maildrop version of
deliverquotaexits with exit code77(EX_NOPERM) - the Courier version of
deliverquotaexits with exit code75(EX_TEMPFAIL)
π SEE ALSO π
maildirquota(7) [1], maildirmake(1) [2].
π AUTHOR π
Sam Varshavchik Author
πΈ NOTES πΈ
maildirquota(7)http://www.courier-mta.org/maildirquota.htmlmaildirmake(1)http://www.courier-mta.org/maildirmake.html
mwah π that's the whole page β brought to you by the Courier Mail Server, dated 01/10/2026, and this is DELIVERQUOTA(8) signing off, periodt πβ¨
π¦ where this page comes from
- ubuntu stonking: courier-base 2.0.6-1 Β· GPL-3+~with-OpenSSL-exception
- Copyright 1998 - 2009 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