On Thursday, August 7, 2003, at 10:41 PM, Eero Volotinen wrote:

to get quota support in courier imap.

vpopmail version? courier imap version?

All versions of this toaster should support it. However, a few things need to be in place for the quota to display anything:


1. QUOTA must appear in the response to the CAPABILITY command:

$ telnet shupp.org 143
Trying 216.234.249.114...
Connected to ns1.merchbox.com.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See COPYING for distribution information.
. login [EMAIL PROTECTED] testpassword
. OK LOGIN Ok.
. capability
* CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA
. OK CAPABILITY completed


This is set in the IMAP_CAPABILITY directive in /usr/lib/coucier-imap/etc/imapd

2. The user not only must have a quota set, but the maildirsize file *must* exist and must have at least one entry beyond the quota setting at the top. Not sure why that last point is, but I discovered that if the file exists, but has no entries for message/size counts, courier-imap will not send a STORAGE response. Here's an example of a successfull IMAP conversation that you can use to determine that courier is giving you a correct STORAGE response. (this MUST work before you even try the quota plugin).

# telnet 0 143
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See COPYING for distribution information.
. login [EMAIL PROTECTED] testpass
. OK LOGIN Ok.
. GETQUOTAROOT INBOX
* QUOTAROOT "." "ROOT"
* QUOTA "ROOT" (STORAGE 389890 614400)
. OK GETQUOTAROOT Ok.
. logout
* BYE Courier-IMAP server shutting down
. OK LOGOUT completed
Connection closed by foreign host.



Regards,


Bill Shupp

Reply via email to