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, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

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
Senior Member
 
Posts: 55
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
Senior Member
 
Posts: 55
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 Consultant & Moderator
 
Posts: 11,327
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
Starter Member
 
Posts: 1
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
 
Posts: 215
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
 
Posts: 1
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, 249 views)
Reply With Quote
  #7 (permalink)  
Old 07-19-2007, 01:55 PM
Outstanding Member
 
Posts: 576
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
 
Posts: 9
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
 
Posts: 27
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
Active Member
 
Posts: 30
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


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0