[Dovecot] how quotas works with postfix and dovecot
Nick Rosier
nick+dovecot at bunbun.be
Sat Mar 13 01:01:24 EET 2010
Wilberth Pérez wrote:
> dovecot-1.2.10
>
> knows how i can create quotas templates ?
>
> cheers.
>
I have no experience using disk quota's but I think something like this
should work:
plugin {
quota = fs:Disk quota
quota_rule = INBOX:storage=<whatever max you like>
quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
}
AFAIK, the backend is only used as a way to determine the used space,
not as a way to define the limits. So you need to specify the maximum
quota; the filesystem quota is not recognized. E.g. when specifying
maildir as backend Dovecot will check the maildir quota in stead of
using used diskspace as reported by the OS.
N.
> --------------------------------------------------------
> LCC Wilberth de Jesús Pérez Segura CCSA- Administración de Servicios y
> Seguridad de las TI
> Correo: wilberth.perez at uady.mx
> Universidad Autónoma de Yucatán
> Secretaría General
> Coordinación Administrativa de Tecnologías de Información
> RIUADY
> C-59 x Av. Itzáes (999)923-74-28 Ext. 1117
> Mérida, Yucatán, México 2010
> --------------------------------------------------------
>
>
> El 12/03/2010 04:43 p.m., Nick Rosier escribió:
>> Wilberth Pérez wrote:
>>> Hi everybody
>>>
>>> any one knows, how i could edit dovecot to assign user quotas ?
>>>
>>> I have now configured my dovecot.conf on this way:
>>>
>>>
>>> protocol imap {
>>> listen = *:143
>>> mail_plugins = quota imap_quota
>>> }
>>>
>>> protocol pop3 {
>>> listen = *:110
>>> mail_plugins = quota
>>> }
>>>
>>>
>>> plugin {
>>>
>>> quota = fs:INBOX:mount=/
>>> quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95
>>>
>>>
>>> }
>>>
>>> however when a test my quota:
>>>
>>>
>>> quota -v user1
>>>
>>> Disk quotas for user1 (uid 107):
>>> Filesystem *usage* *quota* limit timeleft files quota
>>> limit timeleft
>>> /var/mail 16911 10240 20480 NOT STARTED 49 1000 1500
>>>
>>>
>>> dovecot or postfix (i don't know who really should sendme the
>>> messsage) never sendme an quota warning
>>>
>>> someone knows what happen ?
>> What version of Dovecot are you using? You have no quota_rule
>> specified. If using 1.1 or higher, check out this page:
>> http://wiki.dovecot.org/Quota/1.1
>>
>> N.
More information about the dovecot
mailing list