DELIVERQUOTA(8)

πŸ“¦
version 2.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’Œ 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 deliverquota exits with exit code 77 (EX_NOPERM)
  • the Courier version of deliverquota exits with exit code 75 (EX_TEMPFAIL)

🌈 SEE ALSO 🌈

maildirquota(7) [1], maildirmake(1) [2].


πŸ‘‘ AUTHOR πŸ‘‘

Sam Varshavchik Author


🌸 NOTES 🌸

  1. maildirquota(7) http://www.courier-mta.org/maildirquota.html
  2. maildirmake(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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms