[Dovecot] Quota monitoring
Hello,
I would like to monitor users quotas in Dovecot but I don't find a way to do it for every user. Acutally I can log in with user & password to get the users quota but wat I need is a way to monitor the quota of every user with e.g an admin user which would have an acces to the quota of each mailbox. Is there a way to this?
Thanks for your help.
Hey there,
On 04/21/2010 11:20 AM, Vlamsdoem wrote:
I would like to monitor users quotas in Dovecot but I don't find a way to do it for every user.
One option is to use a database to store the quota or better 'usage of quota', then it's always there for you to access.
Acutally I can log in with user & password to get the users quota but wat I need is a way to monitor the quota of every user with e.g an admin user which would have an acces to the quota of each mailbox. Is there a way to this?
If a one-by-one query of the quota is ok, use the master-user to login: ... http://wiki.dovecot.org/Authentication/MasterUsers
Thanks for your help.
You're welcome :-)
Christian
Hi,
Acutally I can log in with user & password to get the users quota but wat I need is a way to monitor the quota of every user with e.g an admin user which would have an acces to the quota of each mailbox.
Which quotas do you use?
With Maildir and SQL-userdb you can save the quota-information in a database (proxy::dict) and monitor the usage there.
works great here ;-)
Am 21.04.2010 12:00 schrieb Anton Dollmaier:
With Maildir and SQL-userdb you can save the quota-information in a
database (proxy::dict) and monitor the usage there.works great here ;-) Could you post configuration details ?
Thanks!
-- Andreas Schulze Internetdienste | P532
DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
Hi,
Could you post configuration details ?
Configured as described in dovecot-wiki:
http://wiki.dovecot.org/Quota/Dict http://wiki.dovecot.org/Quota/1.1
Quota-information is then directly SELECTable from the table "quota".
Best regards,
Anton
On 21/04/10 12:00, Anton Dollmaier wrote:
Hi,
Acutally I can log in with user & password to get the users quota but wat I need is a way to monitor the quota of every user with e.g an admin user which would have an acces to the quota of each mailbox.
Which quotas do you use?
With Maildir and SQL-userdb you can save the quota-information in a database (proxy::dict) and monitor the usage there.
works great here ;-)
I'm using ldap as backend for everything (quota, user and passwords).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
I'm using ldap as backend for everything (quota, user and passwords).
You store your current quota in LDAP?
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS872RL+Vh58GPL/cAQLPDAgAn2AhRmEqgPvQkoOjg0sHNAmFXfhCVcCx OejICb3Lwx2/4EmJaFpc2BjJQHff/noWAAn+8u/Lh+Eer3Kl8UJFr3iO/owoUiMh e1GZk+L5k43Z5Fo5pjuHf3HeotOJZLSFJVio2IH4dBQKUUPekI/JUipP0IyVIDYD 7nxyXuwbDvmueiYP27/2W5gLF96U6FNOjCF6bteK6jJpR0A4yHdCECsHi52GeK8X U/sYEVUh3QccT9pvWlwJ8F6ZO59dYPlSEcj5wQSWByNQWac+wOeKequVzWwUFxXQ yk0LhxCuQGfEYAeXlKO2ZjBPuDgTrLyfkallLgS3fIC7deaviVsr+g== =dijp -----END PGP SIGNATURE-----
On 21/04/10 14:57, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
I'm using ldap as backend for everything (quota, user and passwords).
You store your current quota in LDAP?
Regards,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS872RL+Vh58GPL/cAQLPDAgAn2AhRmEqgPvQkoOjg0sHNAmFXfhCVcCx OejICb3Lwx2/4EmJaFpc2BjJQHff/noWAAn+8u/Lh+Eer3Kl8UJFr3iO/owoUiMh e1GZk+L5k43Z5Fo5pjuHf3HeotOJZLSFJVio2IH4dBQKUUPekI/JUipP0IyVIDYD 7nxyXuwbDvmueiYP27/2W5gLF96U6FNOjCF6bteK6jJpR0A4yHdCECsHi52GeK8X U/sYEVUh3QccT9pvWlwJ8F6ZO59dYPlSEcj5wQSWByNQWac+wOeKequVzWwUFxXQ yk0LhxCuQGfEYAeXlKO2ZjBPuDgTrLyfkallLgS3fIC7deaviVsr+g== =dijp -----END PGP SIGNATURE-----
No only the maximum quota for each user.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
No only the maximum quota for each user.
So, where are your current quota values located?
There had been mentioned to use SQL, where you can easily get your quota via SQL.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8 p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow== =Owfw -----END PGP SIGNATURE-----
On 22/04/10 10:57, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
No only the maximum quota for each user.
So, where are your current quota values located?
There had been mentioned to use SQL, where you can easily get your quota via SQL.
Regards,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8 p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow== =Owfw -----END PGP SIGNATURE-----
The current values of the quota is located in the maildirsize file in each user mailbox directory. I can do a script to parse every maildirsize file but I don't understand the format of this file. I read in the documentation that the first line is the maximum storage limit in bytes, but I don't know what the other lines means. Here is an example of a maildirsize file:
1024000000S 24140481 824 2580 1 655 1 975 1 975 1 975 1 975 1 1434 1 610 1 3577 1
Regards,
On 04/22/2010 12:02 PM, Vlamsdoem wrote:
On 22/04/10 10:57, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
No only the maximum quota for each user.
So, where are your current quota values located?
There had been mentioned to use SQL, where you can easily get your quota via SQL.
Regards,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8 p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow== =Owfw -----END PGP SIGNATURE-----
The current values of the quota is located in the maildirsize file in each user mailbox directory. I can do a script to parse every maildirsize file but I don't understand the format of this file. I read in the documentation that the first line is the maximum storage limit in bytes, but I don't know what the other lines means. Here is an example of a maildirsize file:
1024000000S 24140481 824 2580 1 655 1 975 1 975 1 975 1 975 1 1434 1 610 1 3577 1
Regards,
http://www.courier-mta.org/imap/README.maildirquota.html
Regards,
Hugo Monteiro.
-- fct.unl.pt:~# cat .signature
Hugo Monteiro Email : hugo.monteiro@fct.unl.pt Telefone : +351 212948300 Ext.15307 Web : http://hmonteiro.net
Divisão de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.fct.unl.pt apoio@fct.unl.pt
fct.unl.pt:~# _
On 22/04/10 13:39, Hugo Monteiro wrote:
On 04/22/2010 12:02 PM, Vlamsdoem wrote:
On 22/04/10 10:57, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 Apr 2010, Vlamsdoem wrote:
No only the maximum quota for each user.
So, where are your current quota values located?
There had been mentioned to use SQL, where you can easily get your quota via SQL.
Regards,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS9APgb+Vh58GPL/cAQLsMwf8DxGNpPf5/tup6S+QQsVAOBOtgveKGXno 19MYefBMK1OJVzurf6DpFXDW8KkpXTkcX5nGVhpFKexytMyNF4qnRWM6JtIld+8F hJaIcdeH/TL6l1pS3veydF8J8C67RbudcgY441bn4dv6TuIl/pcoJadij7mwiVSP oHKPgXJP5nqkgqmW7tFogeSNpCuOlK/7YX2N/PDArIZgw08V/TsnZjTVOzNkp6u8 p1iLvI0MplJUXD9iThDhe4qwERfydgUslfEDpO1lOIYqVHKPqv9Q4HQx+Q0ZpEwD ooqyJUPpk7TTIdzbCQ65kqAnYAE9SrALsOz6uXzsrKKaRqghBrlcow== =Owfw -----END PGP SIGNATURE-----
The current values of the quota is located in the maildirsize file in each user mailbox directory. I can do a script to parse every maildirsize file but I don't understand the format of this file. I read in the documentation that the first line is the maximum storage limit in bytes, but I don't know what the other lines means. Here is an example of a maildirsize file:
1024000000S 24140481 824 2580 1 655 1 975 1 975 1 975 1 975 1 1434 1 610 1 3577 1
Regards,
http://www.courier-mta.org/imap/README.maildirquota.html
Regards,
Hugo Monteiro.
Finally I found a script here http://www.timj.co.uk/linux/maildir-check-quotas to monitoring the quota of each mailbox. I think it's the best solution for me.
Thanks for your help.
participants (6)
-
Andreas Schulze
-
Anton Dollmaier
-
Christian Rohmann
-
Hugo Monteiro
-
Steffen Kaiser
-
Vlamsdoem