[Dovecot] dsync is SLOW compared to rsync

Jeff Gustafson ncjeffgus at zimage.com
Thu Mar 29 05:07:13 EEST 2012


On Thu, 2012-03-29 at 04:07 +0300, Timo Sirainen wrote:
> On 29.3.2012, at 3.48, Jeff Gustafson wrote:
> 
> > On Thu, 2012-03-29 at 03:06 +0300, Timo Sirainen wrote:
> > 
> >> time doveadm -o mail=mdbox:/tmp/mdbox import mdbox:/path/to/real/mdbox "" all
> > 
> > 	This tried to write to /root for some reason and failed (dovecot
> > 2.1.3):
> > 
> > # time doveadm -o mail=maildir:/home/bu/test.mdbox import
> > maildir:/home/users/user at domain.com/Maildir "" all
> > doveadm(root): Error: chdir(/root/) failed: Permission denied
> > (euid=10025(vmail) egid=10025(vmail) missing +x perm: /root, we're not
> > in group 0(root), dir owned by 0:0 mode=0550)
> > doveadm(root): Error: chdir(/root) failed: Permission denied
> > doveadm(root): Error: Can't find namespace for mailbox Trash
> > doveadm(root): Error: Can't find namespace for mailbox test
> 
> 
> Maybe -o mail_home=/tmp parameter makes it happier? Or possibly it needs -u user at domain, but I'd test that first with a test account to make sure it doesn't break the mailbox in case the userdb lookup overrides some fields.

	That fixed some errors, but it still is having some sort of trouble
with that command:

# time doveadm -o mail=maildir:/home/bu/user.mdbox import -u
user at domain.com maildir:/home/users/user%domain.com/Maildir/ "" all
doveadm(user at domain.com): Error: Can't find namespace for mailbox Trash
doveadm(user at domain.com): Error: Can't find namespace for mailbox test


			...Jeff




More information about the dovecot mailing list