[Dovecot] doveadm import : Error creating new mailbox

Steffen skdovecot at smail.inf.fh-brs.de
Tue Apr 29 18:34:47 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Administrator BCS wrote:
> Citeren Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>:
> 
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> On Tue, 29 Apr 2014, Administrator BCS wrote:
>> 
>>>> mail_location = maildir:/home/vmail/%d/%n
>> 
>>>> userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver =
>>>> sql }
>> 
>> BTW: What home directory are you using? It is not recommended to
>> run with mail (dir) == home (dir). Insofar, it might be better to
>> add the pseudo standard Maildir to mail_location.
> 
> I don't know if I fully understand your question. I am trying to
> import mail from an old system running mbox (inbox in
> /var/mail/username and the rest in /home/username/mail/), to a new
> system running Postfix/Dovecot with virtual mailboxes for separate
> domains.

I'd suggested to _not_ import, but migrate the messages.

However, doveadm import -u user maildir:... "" all
works for me, but my target user already has ~/Maildir/{new,cur,tmp}.

> So the mail users on the new system do not have a linux account
> anymore and therefore no homedir either.

Well, maybe you could call the "homedirectory" in the sense of Dovecot
as "directory where to put files relatively to by default', see
http://wiki2.dovecot.org/MailLocation sec. "homeless useres".

> As you suggested earlier, copying to maildir converted box manually
> to the vmail folders and editing the subscriptions file is a way to
> get it to work but it is very labour intensive.

I though mb2md supports "-d destdir", and to patch subscribe :

cd <<maildir>>
echo INBOX >subscribe
ls -d .??* |grep '^\.' | sed -e 's/^\.//' >>subscribe

- -- 
Steffen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEVAwUBU1/wx3D1/YhP6VMHAQKUbQgA7f8Ro3K6Z8BzWW5uOnAaWDOYPbacqWDF
CRcHB0sqgSqWoOYnsB/ymL2fWqrK5dHmcDStU4PfiEimHM2eMhgJkGreSRbbT8Yw
YYIwyRUjzewfFeZJU/BSzklhppctKUK+e2VghoiSgYDE1HsDr4SciBHzG82wKn/4
d30k4nCsWnUJ7P5bLUxtJFI1Qtdczi2Orcuhfc9jTEKaGv8rukvcl2b/BxJQKOSK
XAQpHn9p4GhjJ7/jpHB8Nmz7JztKg0B0XdVjGRde2M10dzxL7R9isCJ3pcBn3b2y
GKi/Axzo+jpHRrIVqsWs+YK3pX16rs/j7dCxuc6NaBqiE90wmDXRmQ==
=ep+o
-----END PGP SIGNATURE-----


More information about the dovecot mailing list