On Feb 1, 2008 2:29 PM, Stefan Palme <kleiner77@xxxxxxx> wrote: > Hi > > I have a cyrus imap server installation without virtual domain support. > Some months ago I started receiving mails for other domains besides my > "default" domain, so I have usernames like "bob" (for the default > domain) and "fred.domain2" (for the additional domain domain2.com). > (The naming scheme "NAME.DOMAIN" has been introduced to avoid > collisions, in fact I emulated virtual domains this way). > > This gets more and more ugly, so I want to migrate to "real" virtual > domain support. I've tested virtual domains on a test server, and > everything is fine. > > My only problem: how do I migrate the mails from the old "fred.domain2" > mailbox to the new "fred@xxxxxxxxxxx" mailbox? Until now there > exists a mailbox "user/fred.domain2" (I'm using unixhierarchystyle). > The new mailbox for this user is "user/fred@xxxxxxxxxxx" - so there > is a new mailspool directory for this account. > > I guess I can not simply move the content of /var/spool/imap/f/user/fred^domain2 > to the new location /var/spool/imap/domain/d/domain2.com/f/user/fred > without breaking something. Create new mailboxes and move old content using imapsync tools. For user that dont need to be migrated you can use defaultdomain=yourdomain.com in imapd.conf that will make fred@xxxxxxxxxxxxxx match your old user fred. Regards > > So what needs to be done to ensure, that fred will be able to read his > old mails (and seeing his old mailbox structure) after switching to > virtual domains and logging in using his new account "fred@xxxxxxxxxxx"? > > Thanks and regards > -stefan- > > > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > -- Alain Spineux aspineux gmail com May the sources be with you ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html