Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra - Forums.
Welcome to the forums! We encourage you to explore all things Zimbra with our team and members of the community. If you would like to post a comment, please register and review our posting policy.

Reply
 
LinkBack (15) Thread Tools Display Modes
  15 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-02-2006, 05:19 AM
Active Member
 
Join Date: Nov 2006
Location: Manchester, UK
ZCS Version: Release 5.0.6_GA_2313.UBUNTU6 UBUNTU6 FOSS edition
Posts: 41
bertie_uk is on a distinguished road
Lightbulb Guide to Migrate from Sendmail/Pop3/IMAP to Ubuntu Zimbra

I've just followed the Ubuntu installation guide and then proceeded to migrate my mail from Redhat Sendmail/Pop3/IMAP to Ubuntu 6.06 Server.

There is info in these forums how to do it but scattered about.

Here's a quick migration guide:

You'll need to have IMAP running on your old server. In my case it was present but disabled.

On zimbra server, as root

1) apt-get install build-essential

2) apt-get install make

3) apt-get install libio-socket-ssl-perl

4) Get Mail-IMAPClient-2.2.9 from http://search.cpan.org/~djkernen/Mail-IMAPClient-2.2.9/

5) Gunzip & untar, and follow instructions in Mail-IMAP/INSTALL to install

6) Download TermReadKey-2.30 from http://search.cpan.org/~jstowe/TermReadKey-2.30/

7) Gunzip & untar TermReadKey and do same as Mail-IMAP to install (perl Makefile.PL, make, make test, make install)

8) Get imapsync from http://www.linux-france.org/prj/imapsync/dist/

9) Gunzip & untar imapsync

10) in imapsync dir, use the following command:

./imapsync --nosyncacls --syncinternaldates --host1 old_mail_server --user1 old_server_username --password1 oldserverpwd --host2 new_zimbra_server --user2 new_zimbra_username --password2 new_zimbra_pwd --authmech1 LOGIN --authmech2 LOGIN

You can add --folder INBOX to only sync the inbox folder. And there are other options too, ./imapsync to display the help

Yes you need to run imapsync for each user, but this can be scripted.

Bertie

Last edited by bertie_uk : 12-23-2006 at 04:34 PM.
Reply With Quote
  #2 (permalink)  
Old 12-04-2006, 05:24 AM
Active Member
 
Join Date: Nov 2006
Location: Manchester, UK
ZCS Version: Release 5.0.6_GA_2313.UBUNTU6 UBUNTU6 FOSS edition
Posts: 41
bertie_uk is on a distinguished road
Default Sticky?

Admins: Any chance of making this a sticky? Just come back to it for my own reference and notice it's dropped off as it's over a month old.

Cheers

Bertie
Reply With Quote
  #3 (permalink)  
Old 12-04-2006, 05:31 AM
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 8,459
phoenix is on a distinguished road
Default

You could add this to the wiki as a 'how-to' guide if you have the time.
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 12-13-2006, 09:15 PM
Junior Member
 
Join Date: Dec 2006
Posts: 1
sickdm is on a distinguished road
Default

Additionally, some servers don't like plaintext connections, so --ssl1 and --ssl2 flags can be handy:

./imapsync --nosyncacls --syncinternaldates --ssl1 --ssl2 --host1 servername1 --user1 username1 --password1 password1 --host2 servername2 --user2 username1 --password2 password2 --authmech1 LOGIN --authmech2 LOGIN
Reply With Quote
  #5 (permalink)  
Old 03-09-2007, 08:04 AM
Advanced Member
 
Join Date: Mar 2007
Location: Regina, Sask.
ZCS Version: Release 5.0.6_GA_2313.RHEL5_20080522104341 CentOS5 FOSS edition
Posts: 215
SpEnTBoY is on a distinguished road
Default

Quote:
Originally Posted by sickdm View Post
Additionally, some servers don't like plaintext connections, so --ssl1 and --ssl2 flags can be handy:

./imapsync --nosyncacls --syncinternaldates --ssl1 --ssl2 --host1 servername1 --user1 username1 --password1 password1 --host2 servername2 --user2 username1 --password2 password2 --authmech1 LOGIN --authmech2 LOGIN
Just to add to the list (although I'm sure people through trial and error would figure it out) here's what I had to run to sync my courier-imap server with Zimbra:

First on my courier IMAP server I needed to edit the imapd file.

Code:
# pwd
/usr/lib/courier-imap/etc
# vi imapd
I had to add an AUTH method as it wasn't there:
Code:
IMAP_CAPABILITY="IMAP4rev1 AUTH=CRAM-MD5 \
AUTH=CRAM-SHA1 CHILDREN NAMESPACE \
THREAD=ORDEREDSUBJECT THREAD=REFERENCES \
SORT QUOTA IDLE"
Then the sync command I used:
Code:
./imapsync --nosyncacls --syncinternaldates \
--host1 old_host --user1 old_user --password1 'my_pass_1' \
--host2 zimba_host --user2 new_user --password2 'my_pass2' \
--ssl2 --authmech2 PLAIN
--
Lonny
Reply With Quote
  #6 (permalink)  
Old 07-09-2007, 04:06 PM
Starter Member
 
Join Date: Nov 2006
Location: Aurora, IL USA
ZCS Version: 4.5.6_GA_1024.RHEL4_20070627170556 CentOS4 NETWORK edition
Posts: 1
logic is on a distinguished road
Send a message via ICQ to logic Send a message via AIM to logic Send a message via MSN to logic Send a message via Yahoo to logic
Default RHEL4 spec for imapsync

For those who might want an RPM of imapsync for their RHEL4 installs (this will likely work just fine on RHEL3 or the accompanying CentOS releases, and probably on Fedora as well; I've only used it on CentOS4 right now), here's a spec for it. You'll need to grab the latest release from the imapsync web page (and you'll probably need a couple of Perl RPMs from the DAG repository; specifically, perl-Mail-IMAPClient, perl-Net-SSLeay, and perl-TermReadKey) and perl-IO-Socket-SSL from Red Hat/CentOS. Enjoy.
Attached Files
File Type: txt imapsync.spec.txt (1.6 KB, 163 views)
Reply With Quote
  #7 (permalink)  
Old 07-19-2007, 01:55 PM
Elite Member
 
Join Date: Jan 2007
Location: Minnesota
ZCS Version: 5.0.11_GA_2695.RHEL4_64_20081117020633 NETWORK
Posts: 457
Rich Graves is on a distinguished road
Default Merging the variously named Trash, Sent, Junk folders

Can someone help me with an imapsync incantation (or any other tool) that can merge various IMAP and webmail clients' sent-mail, Sent Items, Sent, Sent Messages, etc. into Zimbra's single Sent folder?
Reply With Quote
  #8 (permalink)  
Old 07-23-2007, 10:23 PM
Zimbra Employee
 
Join Date: Jul 2007
Posts: 8
plobbes is on a distinguished road
Default

Quote:
Originally Posted by Rich Graves View Post
Can someone help me with an imapsync incantation (or any other tool) that can merge various IMAP and webmail clients' sent-mail, Sent Items, Sent, Sent Messages, etc. into Zimbra's single Sent folder?
I don't have a list of all possible permutations, but once you build up a list in theory you can try something like the following to map various names to 'Sent' (untested):

imapsync ...
--regextrans2 's/^sent-mail$/Sent/i'
--regextrans2 's/^Sent Items$/Sent/i'
--regextrans2 's/^Sent Messages$/Sent/i'
Reply With Quote
  #9 (permalink)  
Old 07-06-2008, 07:45 AM
Active Member
 
Join Date: Jul 2008
Location: Grenoble, France
ZCS Version: 5.0.9_GA_2533.RHEL5_64 client: 20080814234009
Posts: 27
vincen is on a distinguished road
Send a message via AIM to vincen Send a message via MSN to vincen Send a message via Yahoo to vincen Send a message via Skype™ to vincen
Default

Still obliged to use that tool imapsync to migrate imap accounts from an old server to Zimbra ?

Thanks
Reply With Quote
  #10 (permalink)  
Old 07-15-2008, 11:40 PM
Intermediate Member
 
Join Date: Jul 2008
Posts: 21
Wilson_Lee is on a distinguished road
Smile MIgrate from sendmail ( Slackware 10 ) to ZImbra (RHEL 5)

Hi bertie_uk,

I planning to migrate sendmail (slackware 10 ) to Zimbra ( RHEL5 ).
Is the steps same as wat u did?
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/migration/5222-guide-migrate-sendmail-pop3-imap-ubuntu-zimbra.html
Posted By For Type Date
migrate + Zimbra - SWiK This thread Refback 12-15-2007 05:51 PM
Trailfire Guide: Guide to Migrate from Sendmail/Pop3/IMAP to Ubuntu Zimbra - Zimbra - Forums This thread Refback 12-15-2007 05:48 PM
Discover From Your Favorite Topic or Web Page: imap This thread Refback 12-07-2007 03:57 PM
crypticreign's bookmarks on del.icio.us This thread Refback 12-05-2007 09:06 PM
migrate + imap - SWiK This thread Refback 11-29-2007 10:33 PM
Discover From Your Favorite Topic or Web Page: 01.com zimbra hosting This thread Refback 10-25-2007 01:24 PM
imap + Courier - SWiK This thread Refback 10-21-2007 11:43 AM
Guide to Migrate from Sendmail/Pop3/IMAP to Ubuntu Zimbra - Zimbra - Forums - SWiK This thread Refback 10-21-2007 11:41 AM
sync + Zimbra - SWiK This thread Refback 09-01-2007 01:15 PM
imap + Zimbra - SWiK This thread Refback 08-23-2007 12:13 PM
Courier Mail Server - SWiK This thread Refback 08-18-2007 10:39 AM
Guide to Migrate from Sendmail/Pop3/IMAP to Ubuntu Zimbra - Zimbra - Forums - SWiK This thread Refback 08-16-2007 10:09 AM
imap - SWiK This thread Refback 08-15-2007 09:16 AM
Migration [Archive] - Zimbra - Forums This thread Refback 06-29-2007 10:20 AM
imapsync migrating issue (zimbra inbox never populated) - Zimbra - Forums This thread Refback 05-28-2007 10:57 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrade woes -made into new thread JustinHarlow Installation 18 06-08-2007 01:11 PM
zmtlsctl give LDAP error sourcehound Administrators 5 03-11-2007 04:48 PM
zimbra-core missing kinaole Developers 1 10-02-2006 12:59 PM
Installation succesfful! But problem with zmcontrol start mansuper Installation 16 09-07-2006 07:39 AM
FC3 Install and no zimbra ? aws Installation 10 10-09-2005 05:19 PM

Interested in ZCS Network Edition?

Please fill out this brief form so we can follow up with you.

Comcast Customer?

Please read this FAQ.

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and removes this extra sidebar.

Zimbrablog.com

freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0