[Dovecot] maildirsize quota does not referred after migration from courier
Dear All,
We would like to migrate our existing courier to dovecot. After reading document on website and doing some tests, here are some issues we met.
According the the wiki, it seems to imply that once migrating from courier to dovecot, pop3 users may "lost/forget" their download "index/ history" which cause them to download again old mails that are kept on server side.
If this is true, it would seriously annoy our users since they always keep old mails on server so that they can access them through webmail interface.
Is there anyway to avoid this kind of situation?
Currently, we use only /etc/passwd to store our user information. Postfix is our MTA and maildrop is MDA. Quota settings were wriiten in the maildirsize file reside under Maildir directory at everyone's home.
The command we use to set user quota: /usr/local/bin/maildirmake -q 315000000S Maildir
After installing a test environment using dovecot v1.1.beta13, we found that it does not read the quota settings from the maildirsize file, instead, it only rely on the system wide settings. This could be a problem since we have different quota settings for different groups of users. Is this a bug of v1.1? Or should I use v1.0 instead? Will v1.1 fix this bug in the future?
Best regards, Tim Chen
Hello Tim!
On Mon, Jan 14, 2008 at 03:29:50PM +0800, Tim Chen wrote:
Currently, we use only /etc/passwd to store our user information. Postfix is our MTA and maildrop is MDA. Quota settings were wriiten in the maildirsize file reside under Maildir directory at everyone's home.
The command we use to set user quota: /usr/local/bin/maildirmake -q 315000000S Maildir
You have to enable the quota plugin.
In dovecot.conf:
protocol imap { ... mail_plugins = quota imap_quota ... }
...
plugin { quota = maildir }
Have you done this?
Good Luck. Abhijit.
On Mon, 2008-01-14 at 15:29 +0800, Tim Chen wrote:
According the the wiki, it seems to imply that once migrating from courier to dovecot, pop3 users may "lost/forget" their download "index/ history" which cause them to download again old mails that are kept on server side.
If this is true, it would seriously annoy our users since they always keep old mails on server so that they can access them through webmail interface.
Is there anyway to avoid this kind of situation?
Use the migration script, which tries to preserve the UIDLs. http://wiki.dovecot.org/Migration/Courier
Currently, we use only /etc/passwd to store our user information. Postfix is our MTA and maildrop is MDA. Quota settings were wriiten in the maildirsize file reside under Maildir directory at everyone's home.
The command we use to set user quota: /usr/local/bin/maildirmake -q 315000000S Maildir
After installing a test environment using dovecot v1.1.beta13, we found that it does not read the quota settings from the maildirsize file, instead, it only rely on the system wide settings.
Don't give system wide limits, and it'll use the limits in maildirsize file. I don't remember if this can be done simply by not specifying quota_rule at all, or by specifying "quota_rule = *".
On Jan 14, 2008 4:16 PM, Timo Sirainen <tss@iki.fi> wrote:
On Mon, 2008-01-14 at 15:29 +0800, Tim Chen wrote: Use the migration script, which tries to preserve the UIDLs. http://wiki.dovecot.org/Migration/Courier
Thanks I will give it a try.
Currently, we use only /etc/passwd to store our user information. Postfix is our MTA and maildrop is MDA. Quota settings were wriiten in the maildirsize file reside under Maildir directory at everyone's home.
The command we use to set user quota: /usr/local/bin/maildirmake -q 315000000S Maildir
After installing a test environment using dovecot v1.1.beta13, we found that it does not read the quota settings from the maildirsize file, instead, it only rely on the system wide settings.
Don't give system wide limits, and it'll use the limits in maildirsize file. I don't remember if this can be done simply by not specifying quota_rule at all, or by specifying "quota_rule = *".
When specifying quota_rule = *, it warns FQuota root QUOTA: Invalid rule: * when starting dovecot.
If commenting out quota_rule =, we can not get the quota setting by issueing the following command: a login user1 pass1 user1 getquotaroot INBOX the content of maildirsize file
- QUOTAROOT "INBOX" user1 OK Getquotaroot completed.
750000000S 435936340 8836
Is there any settings incorrect?
Thanks for your help.
Best regards, Tim Chen
On Mon, 2008-01-14 at 16:57 +0800, Tim Chen wrote:
- When specifying quota_rule = *, it warns FQuota root QUOTA: Invalid rule: * when starting dovecot.
What about quota_rule = *:
If that doesn't work either, I'll fix it so one of those will.
On Mon, Jan 14, 2008 at 02:00:17PM +0200, Timo Sirainen wrote:
On Mon, 2008-01-14 at 16:57 +0800, Tim Chen wrote:
- When specifying quota_rule = *, it warns FQuota root QUOTA: Invalid rule: * when starting dovecot.
What about quota_rule = *:
If that doesn't work either, I'll fix it so one of those will.
Actually I have nothing of that sort in my config file - it just works. I am using 1.0 though.
-Abhijit
-- Nuclear physicists keep a barrel of zeroes handy just as a carpenter does a keg of nails. - "Farmer in the Sky", Robert A. Heinlein.
On Jan 14, 2008 8:00 PM, Timo Sirainen <tss@iki.fi> wrote:
On Mon, 2008-01-14 at 16:57 +0800, Tim Chen wrote:
- When specifying quota_rule = *, it warns FQuota root QUOTA: Invalid rule: * when starting dovecot.
What about quota_rule = *:
If that doesn't work either, I'll fix it so one of those will.
Thanks to Abhijit, but I am using the latest v1.1b13 released on dec30/2007 instead of v1.0. We do have some old servers running v1.0, but we feel to use the latest one since we are going to do a major upgrade to our server/service.
Setting quota_rule = *: does not solve the problem, I still can not get the quota information. I am afraid this is a bug in v1.1 branch? Would Timo please help to fix it when you have time?
Thanks to Timo and everyone!
Best regards, Tim Chen
On Tue, 2008-01-15 at 11:43 +0800, Tim Chen wrote:
Setting quota_rule = *: does not solve the problem, I still can not get the quota information. I am afraid this is a bug in v1.1 branch? Would Timo please help to fix it when you have time?
Fixed: http://hg.dovecot.org/dovecot/rev/097fe25ab218
There's no need to set quota_rule at all, just "quota = maildir" is enough.
participants (3)
-
Abhijit Hoskeri
-
Tim Chen
-
Timo Sirainen