Zed wrote:
> Hello world )
>
> We're going to migrate to new mailserver. Old and new mailservers use the 
> same 
> set of services - FreeBSD, Postfix, Courier-IMAP, аll settings for mail are 
> kept in MySQL.
>
> We have a problem with moving users maildirs from old server to new one - it 
> must use too much time if offline.
>
> Is it possible to use users maildirs at old and new servers together and 
> transparently for users?
> For example, user connects to new server by IMAP/POP3, new server looks 
> maildirs for this user in new place and in old place. After some time old 
> server will be stopped. Email will be received by new server, old server will 
> only keep old messages.
NFS mount the old server's Maildirs on the new server.  Then use 
symlinks on the new server to point to the NFS Mount and user's home.  e.g.:

New server mounts old servers Maildirs under:
/mnt/oldserver/maildirs/

New server has local Maildirs under:
/var/maildir/

already moved users would have Maildirs like:
/var/maildir/joesmith/Maildir

create symlinks so that users not yet migrated still appear in the same 
place on new server:
/var/maildir/janesmith -> /mnt/oldserver/maildirs/janesmith

Then you can keep your MySQL database unchanged and move the Maildirs 
over slowly.  Your other option would be to make the change in MySQL for 
persons on the old server, pointing their home at the NFS mount of the 
old server but the symlink method is easier IMHO.

Jay

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to