{
    "mode": "man",
    "parameter": "deliverquota",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/deliverquota/8/json",
    "generated": "2026-05-30T06:08:27Z",
    "synopsis": "deliverquota [-c] [-w percent] [-W filename] {maildir} {quota}",
    "sections": {
        "NAME": {
            "content": "deliverquota - deliver to a maildir with a quota\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "deliverquota [-c] [-w percent] [-W filename] {maildir} {quota}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "deliverquota delivers mail to a maildir taking into account any software-imposed quota on the\nmaildir. This manually-enforced quota mechanism is described in the maildirquota(7)[1] and\nmaildirmake(1)[2] manual pages. Instead of setting up your mail server to deliver the message\ndirectly to a maildir, configure the mail server to run the deliverquota program in order to\ndeliver the message, and specify the location of the maildir as the argument to deliverquota.\n\nThe second argument to deliverquota is optional. If present, quota specifies a new quota\nsetting for this maildir. Specifying quota is equivalent to running maildirmake(1)[2] with\nthe -q option. The second argument to deliverquota is considered obsolete, and may be removed\nin the future.\n\ndeliverquota reads the message from standard input and delivers it to maildir.  maildir may\nspecify a path directly to a maildir folder, not the main maildir (as long as the folder was\ncreated by the maildirmake(1)[2] command.\n\nThe -c option automatically creates the maildir, and all missing parent subdirectories (as\n'mkdir -p'). This option should be used with caution.\n\nThe -w N option places a warning message into the maildir if the maildir has a quota setting,\nand after the message was successfully delivered the maildir was at least N percent full. The\nwarning message is copied from the file specified by the -W option, or from /etc/quotawarnmsg\nif -W was not specified. The \"Date:\" and \"Message-Id:\" headers are added to the message. The\nwarning is repeated every 24 hours (at least), until the maildir drops below N percent full.\n",
            "subsections": []
        },
        "RETURN CODE": {
            "content": "deliverquota delivers the message to the maildir and terminates with exit code 0 if the\nmessage can be delivered without going over quota.\n\nIf the maildir is over its specified quota, deliverquota terminates with exit code 77\n(EXNOPERM).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "maildirquota(7)[1], maildirmake(1)[2], http://www.qmail.org/man/man5/maildir.html.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "",
            "subsections": [
                {
                    "name": "Sam Varshavchik",
                    "content": "Author\n"
                }
            ]
        },
        "NOTES": {
            "content": "1. maildirquota(7)\n[set $man.base.url.for.relative.links]/maildirquota.html\n\n2. maildirmake(1)\n[set $man.base.url.for.relative.links]/maildirmake.html\n\n\n\nCourier Mail Server                          06/20/2015                              DELIVERQUOTA(8)",
            "subsections": []
        }
    },
    "summary": "deliverquota - deliver to a maildir with a quota",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "maildirquota",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/maildirquota/7/json"
        },
        {
            "name": "maildirmake",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/maildirmake/1/json"
        }
    ]
}