Re: [Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread krystian
Yes I compiled both courier-imap and maildrop "--with-trashquota".
Postfix delivers with Maildrop.
Before I didn't have problem like this. But recently I did test on very 
small mailbox like 8MB, in bigger mailboxes propably I won't have 
problem like this.
When I delete files, in thunderbird is shown quota: normal quota + 
deleted files. So from 45% if I delete big files is shown 90%, until the 
client refresh it, then the quota back to 45%.
But it takes some time to refresh it.
I checked in the same time webmail and there is no problem.

I'm not sure that how warning message works. I thought that maildrop 
before delivering new message check quota, and if quota exceeds 90% then 
copy (send??) quotawarnmsg.
The file  quotawarnmsg is in /usr/local/courier/etc/ . When quota is 
over 90% nothing happens, new mail is just delivered but without 
additional quotawarnmsg.
Maybe it is lack of courier smtp, or maildrop doesn't know where it 
should look for quotawarnmsg. Maybe I don't have some conf. file.

Regards,
Krystian


Brian Candler wrote:
> On Wed, Jun 14, 2006 at 10:04:15PM +0800, krystian wrote:
>   
>> Yes I compiled with "--with-trash". But before was exactly the same and 
>> I think I didn't have problem like this.
>> 
>
> You mean "--with-trashquota" ? Make sure you are consistent in application
> of this, i.e. compile both maildrop and courier-imap with it.
>
> Make sure you have no program that ever delivers directly to the Maildir
> (such as Postfix), and that all delivery goes via maildrop.
>
>   
 If I have 10 files in
 inbox and is account 75% full, after delete of some files quota size shows
 95% or message that quota exceeded.
 
>
> You can easily check if this is correct or not.
>
> (1) ls -lAR Maildir
>
> (2) Count all the files in new/, cur/ and tmp/ (including folders, like
> .Trash/new, .Trash/cur, .Trash/), and add up the sizes.
>
> (3) Now do 'cat maildirsize'. Ignore the first line (which is the quota),
> and for all the remaining lines, add up the numbers in the first column, and
> add up the numbers in the second column.
>
> This should give you the total size of messages in the maildir, and the
> total number of messages in the maildir, respectively.
>
> If the two disagree, then post your evidence here. That is, the *raw* ls
> -lAR output and the raw 'cat maildirsize' output.
>
> If they agree, then the Maildir really is 95% full. You can find out why by
> looking at the individual message files. Possibly your client has copied
> messages into the .Trash folder, and hasn't expunged them from the original
> folder, which means they'll be taking up even more space on the disk and
> this is reflected in the usage.
>
>   
 Additionally I don't get email with information about exceeding 90% size
 of account. Is it bug in quota, maybe maildrop?
 
>
> I don't think that courier-imap will itself generate this warning if the
> IMAP client uploads new messages which take the mailbox over 90%. However,
> maildrop should do so when the next incoming message is delivered. What
> happens when a new message is delivered, and the Maildir usage is over 90%?
>
> Does a file called "quotawarn" exist in the Maildir? If so, the warning
> message is suppressed until the timestamp on the quotawarn file is more than
> 24 hours in the past.
>
> Brian.
>   



___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread Brian Candler
On Wed, Jun 14, 2006 at 10:04:15PM +0800, krystian wrote:
> Yes I compiled with "--with-trash". But before was exactly the same and 
> I think I didn't have problem like this.

You mean "--with-trashquota" ? Make sure you are consistent in application
of this, i.e. compile both maildrop and courier-imap with it.

Make sure you have no program that ever delivers directly to the Maildir
(such as Postfix), and that all delivery goes via maildrop.

> >>If I have 10 files in
> >>inbox and is account 75% full, after delete of some files quota size shows
> >>95% or message that quota exceeded.

You can easily check if this is correct or not.

(1) ls -lAR Maildir

(2) Count all the files in new/, cur/ and tmp/ (including folders, like
.Trash/new, .Trash/cur, .Trash/), and add up the sizes.

(3) Now do 'cat maildirsize'. Ignore the first line (which is the quota),
and for all the remaining lines, add up the numbers in the first column, and
add up the numbers in the second column.

This should give you the total size of messages in the maildir, and the
total number of messages in the maildir, respectively.

If the two disagree, then post your evidence here. That is, the *raw* ls
-lAR output and the raw 'cat maildirsize' output.

If they agree, then the Maildir really is 95% full. You can find out why by
looking at the individual message files. Possibly your client has copied
messages into the .Trash folder, and hasn't expunged them from the original
folder, which means they'll be taking up even more space on the disk and
this is reflected in the usage.

> >>Additionally I don't get email with information about exceeding 90% size
> >>of account. Is it bug in quota, maybe maildrop?

I don't think that courier-imap will itself generate this warning if the
IMAP client uploads new messages which take the mailbox over 90%. However,
maildrop should do so when the next incoming message is delivered. What
happens when a new message is delivered, and the Maildir usage is over 90%?

Does a file called "quotawarn" exist in the Maildir? If so, the warning
message is suppressed until the timestamp on the quotawarn file is more than
24 hours in the past.

Brian.


___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread Jay Lee

On Wed, June 14, 2006 10:04 am, krystian wrote:
> Yes I compiled with "--with-trash". But before was exactly the same and
> I think I didn't have problem like this.
> I need count quota with trash, in other way the mailbox can be bigger
> then real quota.

The suggested solution to this is to set IMAP_EMPTYTRASH to Trash:7 (or
lower) so that the Trash folder is purged of messages older than 7 days
each time the client logs in.  This keeps users from using the trash
folder as a "quota cheat".

> I use thunderbird as a client, how I can force to purge
> faster?

Make sure "Clean up (expunge) INBOX on exit" and "Empty trash on Exit"
under Account, Server Settings is checked off.  To force subfolders to
purge, right click on the folder and choose compact mail folder.

> Is it any setting on imap server?

No, your mail client isn't telling courier to purge the messages so
Courier won't purge the messages.

> And why I don't get email with information about exceeding 90% of quota?

What is your DEFAULTDELIVERY line in /etc/courier/courierd look like? 
Mine is:

DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop -w 90"

This tells maildrop to warn users (-w) when they are over 90% of their
quota.  Users will not get a warning if they are below 90% of their quota
but a single message delivery will push them over 100%, the message will
fail delivery.  For this reason, your max allowed message size should be
less than the 10% of your quota setting.

P.S.  Please don't top post, it makes the thread really confusing...

Jay
-- 
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--


___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread krystian
Yes I compiled with "--with-trash". But before was exactly the same and 
I think I didn't have problem like this.
I need count quota with trash, in other way the mailbox can be bigger 
then real quota.
I use thunderbird as a client, how I can force to purge faster? Is it 
any setting on imap server?
And why I don't get email with information about exceeding 90% of quota?

Regards,
Krystian

Jay Lee wrote:
> On Wed, June 14, 2006 9:29 am, krystian wrote:
>   
>> Hi!
>> I did upgrade imap 3.0.7 to the newest versions of imap, authlib,maildrop.
>>  Now I have some strange behaviour of imap quota. If I have 10 files in
>> inbox and is account 75% full, after delete of some files quota size shows
>> 95% or message that quota exceeded. I
>> Additionally I don't get email with information about exceeding 90% size
>> of account. Is it bug in quota, maybe maildrop?
>> 
>
> Sounds to me like you compiled with "--with-trash" turned on and your
> client has not yet purged the other folder (INBOX or whichever) of the
> messages.  Thus, when you delete a message it is getting counted a 2nd
> time.  Make sure you don't have --with-trash in your configure statement
> and see if you can get your IMAP client to purge more immediate.  Also
> consider raising the quota limits well above the max message size, if
> these two numbers are within 10-20 times of each other, you'll have
> constant problems.
>
> Jay
>   



___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread Jay Lee
On Wed, June 14, 2006 9:29 am, krystian wrote:
> Hi!
> I did upgrade imap 3.0.7 to the newest versions of imap, authlib,maildrop.
>  Now I have some strange behaviour of imap quota. If I have 10 files in
> inbox and is account 75% full, after delete of some files quota size shows
> 95% or message that quota exceeded. I
> Additionally I don't get email with information about exceeding 90% size
> of account. Is it bug in quota, maybe maildrop?

Sounds to me like you compiled with "--with-trash" turned on and your
client has not yet purged the other folder (INBOX or whichever) of the
messages.  Thus, when you delete a message it is getting counted a 2nd
time.  Make sure you don't have --with-trash in your configure statement
and see if you can get your IMAP client to purge more immediate.  Also
consider raising the quota limits well above the max message size, if
these two numbers are within 10-20 times of each other, you'll have
constant problems.

Jay
-- 
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--


___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] problems after upgrade imap,authlib,maildrop

2006-06-14 Thread krystian
Hi!
I did upgrade imap 3.0.7 to the newest versions of imap, authlib,maildrop.
Now I have some strange behaviour of imap quota. If I have 10 files in
inbox and is account 75% full, after delete of some files quota size
shows 95% or message that quota exceeded. I
Additionally I don't get email with information about exceeding 90% size
of account.
Is it bug in quota, maybe maildrop?

Regards,
Krystian



___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap