Richard Hector
2014-Jul-23 21:37 UTC
Maildir migration - using separate INDEX and CONTROL directories?
Hi all, I'm working on a migration from Courier to Dovecot, and the courier-dovecot-migrate.pl seems to work ok, but it puts all the metadata files (dovecot-uidlist etc) in the Maildir, while I want to put them in the appropriate places as specified: mail_location = maildir:~/Maildir:INDEX=/var/mail/meta/index/%d/%1n/%1.1n/%n:CONTROL=/var/mail/meta/control/%d/%1n/%1.1n/%n http://wiki2.dovecot.org/Quota/FS explains why some of these files need to go in different places (which is why I'm doing it), but I haven't seen a complete list of what files will be moved as a result of those directives. Is there a handy tool to move the files to the right places? Or is there a complete list of what files need to go where? Thanks, Richard
Steffen Kaiser
2014-Jul-24 06:18 UTC
Re: Maildir migration - using separate INDEX and CONTROL directories?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 24 Jul 2014, Richard Hector wrote:> I'm working on a migration from Courier to Dovecot, and the > courier-dovecot-migrate.pl seems to work ok, but it puts all the metadata > files (dovecot-uidlist etc) in the Maildir, while I want to put them in the > appropriate places as specified: > > mail_location = > maildir:~/Maildir:INDEX=/var/mail/meta/index/%d/%1n/%1.1n/%n:CONTROL=/var/mail/meta/control/%d/%1n/%1.1n/%n > > http://wiki2.dovecot.org/Quota/FS explains why some of these files need to go > in different places (which is why I'm doing it), but I haven't seen a > complete list of what files will be moved as a result of those directives. > > Is there a handy tool to move the files to the right places? Or is there a > complete list of what files need to go where?IMHO: move all dovecot* files the migration script generates and the "subscriptions" file into the control directories, some INBOX-related files probably go to <control base>/.INBOX, dovecot-keywords and dovecot-uidlist - maybe more. The migration scripts I saw til today never create any indexes, so the assumption should be fine. And test it with one account, move some messages around, add some subscriptions and ACLs, ... - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU9ClSnz1H7kL/d9rAQJ3NAgAgTj8v7AD/I3BaU1fIpx7WcjQj1jBBMUr dKWmPB/EvhXxpR+emT9j6p+YVPUTxYSLpTV7XyeFJHSO80UDqYqfDJqmaWyz0BH7 zp9GHeNaTmqHko2yOfcQN31lutTk8i9nsioqDt4rlTL6hAdzm/V9R0YtrB47wQDH YengWtWIUIrj7+G6+k11U/hjG2QY+CmD0f4tzTqx1nnIG8X9HgZDzw2qgTBv4Y2y L6fHg2fbwlbbhSMZGS2nf8WLgiwsBUJ1dC2fX9A47d6/eNs1vDzCBbf1KlPpVQ9w EpWuY/oxfJU8Ksc8xn7vP2vGvlapQFs7UOrfbbVQJhjf3FjibV6+nA==SBrc -----END PGP SIGNATURE-----
Steffen Kaiser
2014-Jul-24 06:18 UTC
Maildir migration - using separate INDEX and CONTROL directories?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 24 Jul 2014, Richard Hector wrote:> I'm working on a migration from Courier to Dovecot, and the > courier-dovecot-migrate.pl seems to work ok, but it puts all the metadata > files (dovecot-uidlist etc) in the Maildir, while I want to put them in the > appropriate places as specified: > > mail_location = > maildir:~/Maildir:INDEX=/var/mail/meta/index/%d/%1n/%1.1n/%n:CONTROL=/var/mail/meta/control/%d/%1n/%1.1n/%n > > http://wiki2.dovecot.org/Quota/FS explains why some of these files need to go > in different places (which is why I'm doing it), but I haven't seen a > complete list of what files will be moved as a result of those directives. > > Is there a handy tool to move the files to the right places? Or is there a > complete list of what files need to go where?IMHO: move all dovecot* files the migration script generates and the "subscriptions" file into the control directories, some INBOX-related files probably go to <control base>/.INBOX, dovecot-keywords and dovecot-uidlist - maybe more. The migration scripts I saw til today never create any indexes, so the assumption should be fine. And test it with one account, move some messages around, add some subscriptions and ACLs, ... - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU9ClSnz1H7kL/d9rAQJ3NAgAgTj8v7AD/I3BaU1fIpx7WcjQj1jBBMUr dKWmPB/EvhXxpR+emT9j6p+YVPUTxYSLpTV7XyeFJHSO80UDqYqfDJqmaWyz0BH7 zp9GHeNaTmqHko2yOfcQN31lutTk8i9nsioqDt4rlTL6hAdzm/V9R0YtrB47wQDH YengWtWIUIrj7+G6+k11U/hjG2QY+CmD0f4tzTqx1nnIG8X9HgZDzw2qgTBv4Y2y L6fHg2fbwlbbhSMZGS2nf8WLgiwsBUJ1dC2fX9A47d6/eNs1vDzCBbf1KlPpVQ9w EpWuY/oxfJU8Ksc8xn7vP2vGvlapQFs7UOrfbbVQJhjf3FjibV6+nA==SBrc -----END PGP SIGNATURE-----
Richard Hector
2014-Jul-24 20:51 UTC
Maildir migration - using separate INDEX and CONTROL directories?
On 24/07/14 18:18, Steffen Kaiser wrote:> On Thu, 24 Jul 2014, Richard Hector wrote: >>> Is there a handy tool to move the files to the right places? Or is >> there a complete list of what files need to go where? > > IMHO: move all dovecot* files the migration script generates and the > "subscriptions" file into the control directories, some INBOX-related > files probably go to <control base>/.INBOX, dovecot-keywords and > dovecot-uidlist - maybe more. The migration scripts I saw til today > never create any indexes, so the assumption should be fine. And test it > with one account, move some messages around, add some subscriptions and > ACLs, ...Thanks - seems straightforward enough. Richard