[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.10.3.1 Keeping Quotas in DBM Database

To use the DBM quota database, your copy of mailutils must be compiled with DBM support (one of `--with-gdbm', `--with-db2', `--with-ndbm', `--with-dbm' options to configure). Examine the of mail.local --show-config-options if not sure.

The quota database should have the following structure:

Key
Key represents the user name. Special key `DEFAULT' means default quota value, i.e. the one to be used if the user is not explicitely listed in the database.

Value
The mailbox quota for this user. If it is a number, it represents the maximum mailbox size in bytes. A number may optionally be followed by `kb' or `mb', meaning kilobytes and megabytes, respectively.

A special value `NONE' means no mailbox size limitation for this user.

Here is an example of a valid quota database

 
# Default quota value:
DEFAULT         5mb

# Following users have unlimited mailbox size
root            NONE
smith           NONE

# Rest of users
plog            26214400
karin           10mB

To use the DBM database, specify its full name using `-q' or `--quota-db' in the invocation of mail.local. For example, in sendmail .mc file:

 
define(`LOCAL_MAILER_PATH', `/usr/local/libexec/mail.local')
define(`LOCAL_MAILER_ARGS', `mail -q /etc/mail/quota.db $u')



This document was generated by Sergey Poznyakoff on December, 23 2004 using texi2html