1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Migrate mail from clearos to zimbra with imapsync
(1 viewing) 1 Guest
Go to bottomPage: 1
TOPIC: Migrate mail from clearos to zimbra with imapsync
*
#41676
Migrate mail from clearos to zimbra with imapsync 12 Months ago  
Hi guys..!

I've been using ClearOS for almost a year as mail server, and it has been working really nice most of the time.

At this moment we have 425 users using the built in mail service and it's working fine, but the administration of the system is getting harder every day beacuse of over cuota problems and some kind of dist list permissions. Beside that, users of the service are growing really fast every day so people here has decide to migrate to zimbra.

We are ready to migrate all mail data with impasync but we do not know all users passwords, also we don't know how to reset all passwords at once. So we want to use the admin users and passwds from both servers to simplify the task with imapsync.

From the ClearOs server, what is the system user and password that we should use in this case? cyrus, cyradmin, manager?

This is the whole command we are using:

imapsync --syncinternaldates --server1 mail.clearos --user1 mailuserx --authuser1 ??? --password1 ??? --server2 correo.zimbra.server --user2 mailuserx@zimbra.server --authuser2 admin@zimbra.server --password2 123456789

We really apreciate your time, sugestions and answers... we hope to solve this out and post here our whole experience to help others in the future!

Thanks in advance from Venezuela!.. sorry for my poor English!
Luis Galindo
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/05/22 10:51 By lgalindo.
The administrator has disabled public write access.
 
#42636
Re:Migrate mail from clearos to zimbra with imapsync 11 Months, 1 Week ago  
Did you ever get this working??

I'm having a simlar problem

FYI you need to run the imapsync command for each mailbox ie user. with as many as you have I'd write a short script to do since each run will require the username/password of the user that run is working on.

Here is my problem.

imapsync can connect to the clearos 5.1 server fine but it connect to the new clearos6.2 server running Zarafa beta2 even though the Zarafa config shows imap as running. Here is the output of tying to run an imapsync

Code:

$RCSfile: imapsync,v $ $Revision: 1.484 $ $Date: 2012/02/07 00:19:33 $
Here is a [linux] system (Linux erweb2.erengpc.com 2.6.32-220.17.1.v6.x86_64 #1 SMP Thu May 17 05:53:27 MDT 2012 x86_64)
With perl 5.10.1 Mail::IMAPClient  3.30
Command line used:
/usr/bin/imapsync --host1 192.168.2.11 --user1 bsleys --password1 MASKED --host2 localhost --user2 bsleys --password2 MASKED
Temp directory is /tmp
PID file is /tmp/imapsync.pid
Modules version list:
Mail::IMAPClient     3.30
IO::Socket           1.31
IO::Socket::INET     1.31
IO::Socket::SSL      1.31
Digest::MD5          2.39
Digest::HMAC_MD5     1.01
Term::ReadKey        2.30
Authen::NTLM         1.09

Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
Info: will try to use LOGIN authentication on host1
Info: will try to use LOGIN authentication on host2
Host1: imap server [192.168.2.11] port [143] user [bsleys]
Host2: imap server [localhost] port [143] user [bsleys]
Banner: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS AUTH=PLAIN SASL-IR] erweb.erengpc.com Cyrus IMAP4 v2.3.11 server ready
Info: host 192.168.2.11 says it has NO CAPABILITY for AUTHENTICATE LOGIN
Info: success login on [192.168.2.11] with user [bsleys] auth [LOGIN]
Banner: * OK [CAPABILITY IMAP4rev1 LITERAL+ AUTH=PLAIN] Zarafa IMAP gateway ready
Info: host localhost says it has NO CAPABILITY for AUTHENTICATE LOGIN
Failure: error login [localhost] with user [bsleys] auth [LOGIN]: 2 NO LOGIN imap feature disabled
Failure: error login [localhost] with user [bsleys] auth [LOGIN]: 2 NO LOGIN imap feature disabled



Any help would be greatly appreciated

Bob
bsleys
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#42640
Re:Migrate mail from clearos to zimbra with imapsync 11 Months, 1 Week ago  
Did you enable imap by removing imap from the "disabled_features = " line in /etc/zarafa/server.cfg, then restarting zarafa, as has been detailed in other appends to this forum?

I am successfully syncing mail between CentOS 5.2 and CentOS 62. servers...
An example of my command line host 1 = 5.2 host2 = 6.2, run on the 6.2 server

Code:


imapsync --host1 danda.sraellis.com  --user1 zzzzz --password1 xxxxx \
--prefix1 INBOX --useheader 'Message-ID' --skipsize --host2 glenis.sraellis.com \
--user2 wwww   --password2  yyyyy --prefix2 INBOX --authmech1 \
LOGIN --authmech2 PLAIN  --subscribe --expunge2 --delete2 --sep2=/

Tony Ellis
Platinum Boarder
Posts: 1048
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#42850
Re:Migrate mail from clearos to zimbra with imapsync 11 Months ago  
Thank you I got it working. I thought I had fixed the config line but for some reason the change didn't take till I did a reboot of the server, guess I missed restarting something.
bsleys
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
  get the latest posts directly to your desktop