Re: Migrated from maildir to sdbox: questions
Hi Ranbir,
i think youre just using the wrong quota backend.
https://wiki2.dovecot.org/Quota
You should switch from "quota = maildir...." to another one, like dict.
Converting your Public mailbox you could try this ( no guarantee .. just guessing. make backup ! ): doveadm -o mail_location="maildir:/var/spool/mail/thesandhufamily.ca/public" sync sdbox:/target/folder
Regards, Daniel
Hi Everyone,
I migrated my maildir mailboxes to sdbox without any show stopping errors, but I did see this during the migration and now I'm also seeing it in the log:
Warning: quota: Namespace '' is not Maildir, skipping for Maildir++ quota
I'm not quite sure why this is happening. Any ideas?
I am using a "public" namespace for several mailboxes to share emails:
# public namespace configuration namespace { type = public # the default separator for Maildir is ".", so that is what should be # used automatically. separator = . prefix = Public. location = maildir:/var/spool/mail/thesandhufamily.ca/public subscriptions = no }
Under the "public" dir in the old maildir setup, I have folders configured for various mail accounts. For example:
.Ads .Junk .Bills
etc.
These "users" are setup in a passwd file so that I can use a different mail storage location for them than the one they get from ldap (same as above).
Using dsync to migrate my other mailboxes was easy, but I don't know how to migrate these public mailboxes. I looked through the wiki and didn't see anything about how to do it. Could someone explain how I can migrate the public mailboxes?
-- Ranbir
On Thu, 2019-06-13 at 13:05 +0000, Daniel Betz via dovecot wrote:
i think youre just using the wrong quota backend.
https://wiki2.dovecot.org/Quota
You should switch from "quota = maildir...." to another one, like dict.
I switched to "quota = count:User quota" (as Aki suggested) and now the errors are gone. Thanks to the both of you!
Converting your Public mailbox you could try this ( no guarantee .. just guessing. make backup ! ): doveadm -o mail_location="maildir:/var/spool/mail/thesandhufamily.ca/public" sync sdbox:/target/folder
Thanks for the pointer! This is what worked for me (no errors):
doveadm -o mail_location="maildir:/var/spool/mail/thesandhufamily.ca/public" sync sdbox:/var/spool/mail/thesandhufamily.ca/public-mail/
I was using a "." as the separator in my private inbox and public namespaces when I was using maildir. I still have "." set and don't appear to be having any issues now that I've migrated to sdbox. However, when I try to switch the separator to "/", I get errors like this:
Error: namespace configuration error: list=yes namespace missing
I had changed the "list" parameter for both namespaces to "children" and "no", but I still got the same error. I also can't access my mailboxes after changing the separator to "/". Changing the config back to "." returns me to a working setup.
What am I missing/not understanding?
Thanks in advance!
-- Ranbir
participants (3)
-
Aki Tuomi
-
Daniel Betz
-
Ranbir