DELIVERQUOTA(8)
π NAME π
okay so listen β this is deliverquota from section 8 of the manual (the admin-commands girlies), and her whole job is: deliver to a maildir with a quota. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
deliverquota [-c] [-w percent] [-W filename] {maildir} {quota}
π¦ DESCRIPTION π¦
bestie, here's the tea π: deliverquota delivers mail to a maildir, and it takes into account any software-imposed quota on that maildir. like, it's not out here ignoring the limits. this manually-enforced quota mechanism is the whole thing described in the maildirquota(7)[1] and maildirmake(1)[2] manual pages. iykyk.
so instead of setting up your mail server to deliver the message directly to a maildir, you configure the mail server to run the deliverquota program to deliver the message, and you hand it the location of the maildir as the argument. that's the move. β¨
the second argument to deliverquota is optional. if it's there, quota specifies a new quota setting for this maildir. specifying quota is equivalent to running maildirmake(1)[2] with the -q option. but β and i'm saying this with love β the second argument to deliverquota is considered obsolete, and it may be 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 may specify a path directly to a maildir folder, not the main maildir β as long as the folder was created by the maildirmake(1)[2] command. flexible queen π
here's the options breakdown, one by one, no skipping:
-cβ automatically creates themaildir, plus all the missing parent subdirectories (as inmkdir -p). β οΈ this option should be used with caution. like, for real, be careful with her.-wNβ 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. the warning message is copied from the file specified by the-Woption, or from/etc/quotawarnmsgif-Wwas not specified. the"Date:"and"Message-Id:"headers are added to the message. the warning is repeated every 24 hours (at least), until the maildir drops below N percent full. π
πΈ RETURN CODE πΈ
deliverquota delivers the message to the maildir and terminates with exit code 0 if the message can be delivered without going over quota. clean, simple, slay. β
but if the maildir is over its specified quota? different story, bestie:
- the maildrop version of
deliverquotaterminates with an exit code77(EX_NOPERM). - the Courier version of
deliverquotaterminates with an exit code75(EX_TEMPFAIL).
two different exit codes depending on which version you got. know your version. π«Ά
π SEE ALSO π
maildirquota(7)[1], maildirmake(1)[2].
π AUTHOR π
Sam Varshavchik β Author. iconic. periodt. π
π NOTES π
maildirquota(7)βhttp://www.courier-mta.org/maildirquota.htmlmaildirmake(1)βhttp://www.courier-mta.org/maildirmake.html
okay that's the whole page, no cap. now go forth and deliver responsibly. πβ¨
this was brought to you by the Courier Mail Server, dated 11/12/2022 β mwah, take care of your maildirs bestie π¦π
π¦ where this page comes from
- fedora 43: maildrop 3.1.0-7.fc43 Β· GPL-3.0-only WITH Classpath-exception-2.0
- fedora 44: maildrop 3.1.0-8.fc44 Β· GPL-3.0-only WITH Classpath-exception-2.0
- Copyright 1998 - 2009 Double Precision, Inc. See COPYING for -->
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms