[Dovecot] Nee assistance with migrating/copying a virtual user's maildir to another virtual user

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Aug 16 09:33:16 EEST 2013


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

On Thu, 15 Aug 2013, David Varela wrote:

> I am trying to move/copy a virtual user's maildir to another virtual user
> but am running into problems with dsync and doveadm.  I'm trying to move the
> maildir of a user who is no longer with the company to a manager's maildir.
>
> For doveadm I am using the command:

> doveadm move -u scavenaugh at lamontanita.coop
> jhenning at lamontanita.coop/INBOX/scavenaugh INBOX ALL
>
> The error is:
>
> doveadm(scavenaugh at lamontanita.coop): Error: user
> scavenaugh at lamontanita.coop: Auth USER lookup failed
>
> /var/log/dovecot.log shows:
>
> passdb doesn't support lookups, can't verify user's existence

The user is gone from passdb already, right? Re-create the entry with 
another password or password-locked.

Or, move the directories on filesystem level, e.g. something like:

cd user-Maildir-basedirectory
rename 's/\A(\.[^.].*)/.usr_XYZ$1/' .[^.]*
mkdir -p .usr_XYZ.INBOX/{new,cur,tmp}
touch .usr_XYZ.INBOX/maildirfolder
chown -R vmail:vmail .usr_XYZ.INBOX
mv .usr_XYZ* manage-Maildir-basedirectory

.usr_XYZ is a prefix for a mail folder hierarchie identifying the user. 
vmail:vmail are the necessary Unix owner/group for the newly created 
directories with mkdir two lines above. The rename command renames all 
directory entries that start with a single dot to have the prefix, that 
should be directories only in a Maildir.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUg3HrF3r2wJMiz2NAQL1pQf9GeIEnLfG0zkFXPJ/J2CB/wmGP4m/MCMp
BHxkRiLxXNezK4ckeliaLbpOD+NVyABc2n33tW11qav6IWrLTiGm9+A5p8TUOhfJ
wMWBNJ0TEjtTM+0EbGJlOhkQ0QFooobfc5Sl30qR02yF+vk+SkBdRpkZK7ulpSPf
0ZtwIFF804NzMaKzZP2/SG77Z6JyW1N/TgaJ8QFtZwPrYymzD3iqtaFgoBAZqpSA
g5koZIen0wjHy905Sy+uLseAFj6UIuhVdN8eG18NibaTHRBct3rTeyWAQY8GVZLq
pPggEdUqHeTvrua5CzrL70iDbdcr29xezlvkxRueeDrGOApIprN4Mg==
=1T6x
-----END PGP SIGNATURE-----


More information about the dovecot mailing list