Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Guide to Migrate from Sendmail/Pop3/IMAP to Ubuntu Zimbra

  1. #1
    bertie_uk is offline Senior Member
    Join Date
    Nov 2006
    Location
    Manchester, UK
    Posts
    59
    Rep Power
    8

    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.

  2. #2
    bertie_uk is offline Senior Member
    Join Date
    Nov 2006
    Location
    Manchester, UK
    Posts
    59
    Rep Power
    8

    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

  3. #3
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    sickdm is offline Starter Member
    Join Date
    Dec 2006
    Posts
    1
    Rep Power
    8

    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

  5. #5
    SpEnTBoY is offline Advanced Member
    Join Date
    Mar 2007
    Location
    Regina, Sask.
    Posts
    215
    Rep Power
    8

    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

  6. #6
    logic is offline Starter Member
    Join Date
    Nov 2006
    Location
    Aurora, IL USA
    Posts
    1
    Rep Power
    8

    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 Attached Files

  7. #7
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    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?

  8. #8
    ppearl's Avatar
    ppearl is offline Zimbra Employee
    Join Date
    Jul 2007
    Location
    US
    Posts
    67
    Rep Power
    8

    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'

  9. #9
    vincen is offline Active Member
    Join Date
    Jul 2008
    Location
    Grenoble, France
    Posts
    27
    Rep Power
    7

    Default

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

    Thanks

  10. #10
    Wilson_Lee is offline Active Member
    Join Date
    Jul 2008
    Posts
    39
    Rep Power
    7

    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?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. upgrade woes -made into new thread
    By JustinHarlow in forum Installation
    Replies: 18
    Last Post: 06-08-2007, 12:11 PM
  2. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  3. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 11:59 AM
  4. Replies: 16
    Last Post: 09-07-2006, 06:39 AM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •