HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Migrating to new server. Help with mail. (http://www.howtoforge.com/forums/showthread.php?t=60044)

xciso 26th December 2012 17:14

Migrating to new server. Help with mail.
 
Hello.
I am now setting up a new vps and i want to move everything from my old to my new.
I have set-up everything manual, like account, websites, ftp account and everything, but now i want to move all e-mails from my old server.

I am using imap to all accounts so i need to save everything from the server.
Anyone know how to do this? (Using dovecot)

Thanks! & Happy new Year! :)

falko 28th December 2012 11:54

http://www.howtoforge.com/how-to-mig...ith-imap-tools
http://www.howtoforge.com/how-to-mig...-with-imapcopy
http://www.howtoforge.com/how-to-mig...-with-imapsync

tahunasky 29th December 2012 20:39

I have just been doing the same thing for about 40 users, and the easiest way for me was.

On target server:
I created all the email users in ISPCONFIG.
Stop dovecot.

Then using WinSCP on a windows box, I copied over the vmail/maildir directory for each user from source server to target server. Or you could archive to a file the expand again on target server providing the directory structure is the same.

Then once the copy to target server is complete, set owner/group to vmail (5000) for all files and sub-directories in /var/vmail.

Sart dovecot on target server.

I didnt have the passwords for most of the users so i just dumped from source msql database and then imported into the new ISPCONFIG database.


All times are GMT +2. The time now is 08:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.