cyrquota to check all domains at once

Will Prater lists-wp at mercurycloud.net
Tue Feb 10 20:37:09 EST 2004


Ken,

On Feb 10, 2004, at 1:19 PM, Ken Murchison wrote:

> Will Prater wrote:
>
>> On Feb 10, 2004, at 6:40 AM, Ken Murchison wrote:
>>> Will Prater wrote:
>>>
>>>> List,
>>>> I have a script in which I was using cyrquota to check the quota on 
>>>> all users and send messages out to those that are near their quota. 
>>>> After migrating my users to virtual domains in Cyrus IMAP 2.2.3, I 
>>>> have to pass the -d <domain> argument to get the quota usages. Is 
>>>> there a way to dump the quota usages for all users and all domains?
>>>
>>>
>>> Actually, I just looked at the source and did some testing.  When I 
>>> ported quota to use cyrusdb, I modified quota.c so that if you don't 
>>> specify *any* quotaroots or domains, it will list *all* quotaroots.
>>>
>>> What are you using as your command line?  Simply doing 'quota' lists 
>>> all quotas in all domains on my box.
>> su - cyrus -c "/usr/local/cyrus/bin/cyrquota" lists just quotos in 
>> the default domain.
>
> I assume cyrquota is a renamed cyrus quota.  If so, then either you 
> have an old version of quota, or its not using an imapd.conf with 
> virtdomains enabled.

I have installed Cyrus 2.2.3 I should have all the current binaries. 
Where can I find Cyrus quota? Are you talking about a command within 
cyradm?

here are the binaries that I have from the installation.

----
-rwxr-xr-x    1 root     wheel        677k Jan 28 01:24 arbitron
-rwxr-xr-x    1 root     wheel        676k Jan 28 01:24 chk_cyrus
-rwxr-xr-x    1 root     wheel        676k Jan 28 01:24 ctl_cyrusdb
-rwxr-xr-x    1 root     wheel        678k Jan 28 01:24 ctl_deliver
-rwxr-xr-x    1 root     wheel        680k Jan 28 01:24 ctl_mboxlist
-rwxr-xr-x    1 root     wheel        676k Jan 28 01:24 cvt_cyrusdb
-rwxr-xr-x    1 root     wheel        679k Jan 28 01:24 cyr_expire
-rwxr-xr-x    1 root     wheel        758k Jan 28 01:24 cyrdump
-rwxr-xr-x    1 root     wheel        678k Jan 28 01:24 cyrquota
-rwxr-xr-x    1 root     wheel        720k Jan 28 01:24 deliver
-rwxr-xr-x    1 root     wheel        684k Jan 28 01:24 fud
-rwxr-xr-x    1 root     wheel        876k Jan 28 01:24 imapd
-rwxr-xr-x    1 root     wheel        678k Jan 28 01:24 ipurge
-rwxr-xr-x    1 root     wheel        838k Jan 28 01:24 lmtpd
-r-xr-xr-x    1 root     wheel        4.5k Jan 28 01:24 masssievec
-rwxr-xr-x    1 root     wheel         55k Jan 28 01:24 master
-rwxr-xr-x    1 root     wheel        678k Jan 28 01:24 mbexamine
-rwxr-xr-x    1 root     wheel        675k Jan 28 01:24 mbpath
-r-xr-xr-x    1 root     wheel        3.3k Jan 28 01:24 mkimap
-rwxr-xr-x    1 root     wheel        685k Jan 28 01:24 notifyd
-rwxr-xr-x    2 root     wheel        718k Jan 28 01:24 pop3d
-rwxr-xr-x    2 root     wheel        718k Jan 28 01:24 pop3proxyd
-rwxr-xr-x    1 root     wheel        712k Jan 28 01:24 reconstruct
-rwxr-xr-x    1 root     wheel        148k Jan 28 01:24 sievec
-rwxr-xr-x    1 root     wheel        716k Jan 28 01:24 smmapd
-rwxr-xr-x    1 root     wheel        765k Jan 28 01:24 squatter
-rwxr-xr-x    1 root     wheel        791k Jan 28 01:24 timsieved
-rwxr-xr-x    1 root     wheel        689k Jan 28 01:24 tls_prune
----

>
> -- 
> Kenneth Murchison     Oceana Matrix Ltd.
> Software Engineer     21 Princeton Place
> 716-662-8973 x26      Orchard Park, NY 14127
> --PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
>

--will

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list