[Dovecot] dsync with quotas

Timo Sirainen tss at iki.fi
Sat Nov 5 19:39:50 EET 2011


On Mon, 2011-09-19 at 13:19 -0400, Micah Anderson wrote:
> I have been working on converting people from courier maildir -> dovecot
> mdbox and during some of the dsync runs I'm seeing the
> quota_exceeded_message be printed as an Error:
> 
> dsync(<user>): Error: Can't save message to mailbox INBOX: You are over quota. To avoid losing mail, immediately empty your Trash and Sent folders and \
> delete emails with large attachments. 
> dsync(<user>): Info: INBOX: Couldn't keep all uids^M
> 
> Its possible the user was over quota on the originating courier side,
> but I would still like to migrate their mail proprely to mdbox, but it
> seems like being over quota is inhibiting that. Are the quota
> calculations including both the maildir files as well as the converted
> mdbox files, resulting in a double counting? 

Depends on how you did the conversion and what quota backend you were
using. If they were using different quota files, there shouldn't be
double counting. But if for example you did a migration within the same
server and quota was set to dict quota, it was possibly being counted
double (both thought they owned the quota file).

> I'm not entirely sure if the messages above indicate that the migration
> failed for that user or not, so I've been manually increasing their
> quota, then redoing the dsync mirror until it works properly.
> 
> I wonder if it would be better if I turned off quota entirely during
> migration so I don't run into this problem?

Added: http://hg.dovecot.org/dovecot-2.0/rev/00157fd523ea
http://hg.dovecot.org/dovecot-2.0/rev/0cf3215cdf2d



More information about the dovecot mailing list