Hello, i use working quotasystem with sql-quotadict. The values stored in db are used to realize also a quotasystem in postfix to reject mails if they are bigger then remaining quota. if dataset in quotadict is missing for some reasons, postfix can't calculate quota and mail gets delivered even if user is already over quota. I am looking for a way to force dovecot/lda to recalculate users bytes/messages with command xy and not to wait for incomming mail. Currently i use: deliver -d $user -n -m folderwithunspeakablenamesonobodyusesthis and send a small message which gets lost but starts the calculation. This works but seems not to be the finest way. Is there a better way or my current procedure acceptable? Thanks, Andre
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 8 Mar 2010, Andre H?bner wrote: http://www.dovecot.org/list/dovecot/2009-March/038249.html "Quota is updated whenever Dovecot is the one doing changes and quota plugin is loaded." Hmm, I would expect a quota recalculation, too, if there is no current quota at all. In the parents of the mail, there is the outline: 1. remove the quota in the DB, 2. make same changes. With "| dovecot --exec-mail imap" you can do changes or request the current quota easily. However, you probably need to set some environment variables or su to the user for "dovecot" running as the correct system user and mail user. Regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS5TJN7+Vh58GPL/cAQK1+Af/ckGKX+5KqVXkYIg4ZmLd2qvt9JkYjEvq gn1H9tyDi3P9wcC1rI+oioi7j79OMvFqDzLSTR7RZAOi/gVR/upOLzvSU6x+cCGU jit8IDlUYUql0tsgpx3XqYI6c/bugMwNX69feuvuh8gg3grtBs/NefshEv51p8u8 IOvt2D0RG5s+qPSCm+DNe+P2LEOfjfhAJt3xtUzkB7+TgWQIZGrHUIhRpu3MIhR0 FDuOQXy2qLl0Ze5agjAkCduYjzJ4GA4aSnmwDU0xk8bfJKkWUaT48M9MzDo9NJU3 wN7orKhNTA+n5ZJ/I4L7ae9GwJlh1BdyAc2BPgvj/8ot4m1OJtZ5rQ==H9SS -----END PGP SIGNATURE-----
Hello,> 1. remove the quota in the DB, > 2. make same changes.hmm, i see. but unfortunately this is not a way i can do. it would be acceptable in private scope but not for bussinesscustomers. to make a change i would manipulate customers maildata which is not allowed this way. a simple command to update complete quota for the single user would be the best way. now i tried to connect per telnet and use command Getquotaroot, seems also to work. this should be scriptable... ok thanks, i will try something... Andre
BTW. v2.0 can now do: doveadm quota username recalc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100308/37bea9e5/attachment-0002.bin>