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 ? -- -------------------------------------------------------- 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 -------------------------------------------------------- -- -------------------------------------------------------- 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 --------------------------------------------------------
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.
Thanks, I?ll following the advices. Cheers. -------------------------------------------------------- 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 05:14 p.m., Anton Dollmaier escribi?:> Hi, > > >> 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. > > if filesystem-quota for the user is present and another quota is > configured in dovecot, dovecot can not overrun the system-quota. > > fs-quota not only reports used space, but also enforces the > quota-rules - regardless of dovecot configuration. > > > I would not recommend using filesystem-quotas as dovecot runs into > issues regarding indexes (see http://wiki.dovecot.org/Quota/FS for > additional infos). > > Use maildir-quota, perhabs with dict-quota-storage, and no > filesystem-quota - this works great and also gives easy access for > generating reports about user activities through sql-queries. > > > best regards, > > Anton >