migrating to virtual domain support

Alain Spineux aspineux at gmail.com
Fri Feb 1 09:30:46 EST 2008


On Feb 1, 2008 2:29 PM, Stefan Palme <kleiner77 at gmx.net> 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 at domain2.com" mailbox? Until now there
> exists a mailbox "user/fred.domain2" (I'm using unixhierarchystyle).
> The new mailbox for this user is "user/fred at domain2.com" - 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 at yourdomain.com 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 at domain2.com"?
>
> 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


More information about the Info-cyrus mailing list