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/u...@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@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 u...@domain.com maildir:/home/users/user%domain.com/Maildir/ "" all doveadm(u...@domain.com): Error: Can't find namespace for mailbox Trash doveadm(u...@domain.com): Error: Can't find namespace for mailbox test ...Jeff