Check your /usr/lib/courier-imap/etc/imapd config for the
CAPABILITY line, you'll need to add QUOTA.
If you don't get any output, the most likely cause (from
my case at least) is that you don't have a maildirsize file
in that maildir.
On Sun, Dec 23, 2001 at 10:38:44PM +0100, Uros Gruber wrote:
> Hi!
>
> I tried this, but i have strange problem. I have 2 servers. One one is
> installed version 1.3.x and when CAPABILITY output is like yours,
> QUOTA is listed. But when i type this GETQUOTA ROOT nothing works.
>
> Other server is version 1.4.0 and QOUTA is not listed when i type
> CAPABILITY, but when i type GETQUOTA ROOT i get only QUOTA ROOT
> without numbers.
>
> I installed both servers the same way and i don't know why there is
> difference in CAPABILITY and why this is not working as it should.
>
>
> --
> bye,
> Uros
>
>
> Friday, December 21, 2001, 2:54:18 PM, you wrote:
>
> JEW> I went through all these same problems a week or so
> JEW> ago. Here's the trick.
>
> JEW> Courier doesn't have Admin users. You log in as the valid
> JEW> user you're trying to check. So if you want to check
> JEW> the user's quota you would pass their username and password
> JEW> instead of "mailadmin" and "password". The QUOTAROOT in
> JEW> courier is ALWAYS either ROOT or SHARED, for most people it's
> JEW> always ROOT. So instead of "user.kalowsky" pur "ROOT". Then,
> JEW> assume you're maildirquota stuff is working, you'll get
> JEW> the right reply. Be sure to test outsite of PHP that you
> JEW> can issue the right IMAP commands. Try this
>
> JEW> $ telnet imapserver 143
> JEW> Trying 10.10.220.1...
> JEW> Trying 209.87.64.101...
> JEW> Connected to dnslab.dsl.net.
> JEW> Escape character is '^]'.
> JEW> * OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See
>COPYING for distribution information.
> JEW> .. login username password
> JEW> .. OK LOGIN Ok.
> JEW> .. CAPABILITY
> JEW> * CAPABILITY IMAP4rev1 QUOTA CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
>THREAD=REFERENCES SORT
> JEW> .. OK CAPABILITY completed
> JEW> .. GETQUOTA ROOT
> JEW> * QUOTA "ROOT" (STORAGE 17 10240)
> JEW> .. OK GETQUOTA Ok.
> JEW> .. logout
> JEW> * BYE Courier-IMAP server shutting down
> JEW> .. OK LOGOUT completed
> JEW> Connection closed by foreign host.
> JEW> $
>
> JEW> Let me know if you need more help.
>
> JEW> On Wed, Dec 19, 2001 at 07:40:50PM +0100, Uros Gruber wrote:
> >> I thought so. But one think i don't know. I have some script for
> >> getting qouta info for some users. But it's working on cyrus.
> >>
> >> I wan't to know what is the command to get this data, because cyrus
> >> have some administrator user to check this. How can i login to
> >> courier, to get this info.
> >>
> >>
> >> Here is a PHP script to do this.
> >>
> >> $mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
> >> or die("can't connect: ".imap_last_error());
> >>
> >> $quota_value = imap_get_quota($mbox, "user.kalowsky");
> >> if(is_array($quota_value)) {
> >> print "Usage level is: " . $quota_value['usage'];
> >> print "Limit level is: " . $quota_value['limit'];
> >> }
> >>
> >> imap_close($mbox);
> >>
> >> You can see that there is some mailadmin. How can i use this with
> >> courier.
--
Joshua Warchol
UNIX Systems Administrator
DSL.net
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users