# deliverquota(8) - man - phpMan

[DELIVERQUOTA(8)](https://www.chedong.com/phpMan.php/man/DELIVERQUOTA/8/markdown)                        Double Precision, Inc.                        [DELIVERQUOTA(8)](https://www.chedong.com/phpMan.php/man/DELIVERQUOTA/8/markdown)



## NAME
       deliverquota - deliver to a maildir with a quota

## SYNOPSIS
       **deliverquota** [-c] [-w _percent_] [-W _filename_] {_maildir_} {_quota_}

## DESCRIPTION
       **deliverquota** delivers mail to a _maildir_ taking into account any software-imposed quota on the
       maildir. This manually-enforced quota mechanism is described in the [**maildirquota**(7)](https://www.chedong.com/phpMan.php/man/maildirquota/7/markdown)[1] and
       [**maildirmake**(1)](https://www.chedong.com/phpMan.php/man/maildirmake/1/markdown)[2] manual pages. Instead of setting up your mail server to deliver the message
       directly to a maildir, configure the mail server to run the **deliverquota** program in order to
       deliver the message, and specify the location of the maildir as the argument to **deliverquota**.

       The second argument to **deliverquota** is optional. If present, _quota_ specifies a new quota
       setting for this maildir. Specifying _quota_ is equivalent to running [**maildirmake**(1)](https://www.chedong.com/phpMan.php/man/maildirmake/1/markdown)[2] with
       the **-q** option. The second argument to **deliverquota** is considered obsolete, and may be removed
       in the future.

       **deliverquota** reads the message from standard input and delivers it to _maildir_.  _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)](https://www.chedong.com/phpMan.php/man/maildirmake/1/markdown)[2] command.

       The **-c** option automatically creates the maildir, and all missing parent subdirectories (as
       '**mkdir** **-p**'). This option should be used with caution.

       The **-w** **N** option places 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 **-W** option, or from /etc/quotawarnmsg
       if **-W** was 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.

       If the maildir is over its specified quota, **deliverquota** terminates with exit code 77
       (EX_NOPERM).

## SEE ALSO
       [**maildirquota**(7)](https://www.chedong.com/phpMan.php/man/maildirquota/7/markdown)[1], [**maildirmake**(1)](https://www.chedong.com/phpMan.php/man/maildirmake/1/markdown)[2], **<http://www.qmail.org/man/man5/maildir.html>**.

## AUTHOR
### Sam Varshavchik
           Author

## NOTES
        1. [**maildirquota**(7)](https://www.chedong.com/phpMan.php/man/maildirquota/7/markdown)
           [set $man.base.url.for.relative.links]/maildirquota.html

        2. [**maildirmake**(1)](https://www.chedong.com/phpMan.php/man/maildirmake/1/markdown)
           [set $man.base.url.for.relative.links]/maildirmake.html



Courier Mail Server                          06/20/2015                              [DELIVERQUOTA(8)](https://www.chedong.com/phpMan.php/man/DELIVERQUOTA/8/markdown)
