Sergey Chvalyuk writes:

Hello!

We are using exim + courier-imap + authmysql for our mail server.
I have some questions about quota usage for which I can't find answer in documentation or source code.
We are planning to use soft quota ( maildirsize ) for our server.
We have full understanding how exim handles maildirsize quotas but we have some questions about courier-imap

1)
What is the correct way for creating new maildir with quota enabled ?

maildirmake -q 100S Maildir - justs hangs for long period of time, strace shows me that it hanged in loop trying to stat non existed file

This means that Maildir is not a valid maildir.

2)
What is the correct way for changing quota on already existed account. It seems that just changing quota param in our
mysql database doesn't affect it.

That's because Courier-IMAP does not read any database.

3)
I wondering if quota param which supplied by authdaemon from various authentication modules (in our case by authmysql) is used in any place in the imapd process ? I have looked over the code of imaplogin.c and doesn't found any place where quota param from authmodule passed to imapd process.
Does quota param from authmodules are used by imap server at all ?

No. The problem is that you're just using the IMAP server, which only reads the existing quota setting on the maildir. If Courier is used to deliver mail. The mail delivery agent, Courier itself, or maildrop, obtains the quota when it retrieves the recipient's account's particulars, such as the home directory, the uid, and gid, and consequently updates the quota setting in the maildir, which then gets picked up by the IMAP server.

What you will need to do is configure your mail server to use deliverquota to deliver mail to maildirs, and pass it the current quota setting from the account. deliverquota will then update the quota setting in the maildir.

Attachment: pgpR9MbIDdA1p.pgp
Description: PGP signature

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to