[Dovecot] Mailbox format conversion with dsync
Pascal Volk
user+dovecot at localhost.localdomain.org
Thu Nov 19 04:19:26 EET 2009
On 11/12/2009 12:42 AM Pascal Volk wrote:
> On 11/11/2009 06:47 PM Timo Sirainen wrote:
>> example:
>> dsync -e 'dsync -r -O -o mail_location=maildir:~/Maildir'
>
> For the archive:
> I'm using virtual users, without system access. So I had to add
> '-u user' to both dsync commands. It was also necessary to set the
> permissions of the auth-userdb socket to 0666. Because each user
> has its own UID and GID per domain.
>
> doveconf -n
> …
> service auth {
> unix_listener auth-userdb {
> mode = 438
> }
> }
> …
Converting from one mailbox format to another one is now simple as never
before.
Assuming that the mail_location is set to mdbox:~/mdbox and before it
was maildir:~/Maildir:
execute:
dsync convert maildir:~/Maildir
If you are root and want to covert the format of a mailbox from a
virtual user (w/o) system access, execute:
dsync -u john.doe at example.com maildir:~/Maildir
Don't forget to update your sieve rules when switching to dbox or mdbox.
For example:
fileinto "lists.dovecot";
becomes:
fileinto "lists/dovecot";
Regards,
Pascal
--
The trapper recommends today: cafefeed.0932303 at localdomain.org
More information about the dovecot
mailing list