[Dovecot] how quotas works with postfix and dovecot
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@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@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 1500dovecot 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.
dovecot-1.2.10
knows how i can create quotas templates ?
cheers.
LCC Wilberth de Jesús Pérez Segura CCSA- Administración de Servicios y Seguridad de las TI Correo: wilberth.perez@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 1500dovecot 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.
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@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 1500dovecot 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.
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
--
ADIT Systems Anton Dollmaier, B.Sc. Im Moos 22 84323 Massing Telefon: +49-700-46862348* (Mo-Sa, 10:00-20:00 Uhr) Telefax: +49-700-32922348* (*: 12ct./Minute aus dem Netz der DTAG, ggf. abweichende Kosten aus dem Mobilfunknetz)
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@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
participants (3)
-
Anton Dollmaier
-
Nick Rosier
-
Wilberth Pérez