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

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 Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-2010, 02:28 AM
Intermediate Member
 
Posts: 18
Default how to use imapsync

hello
need help regarding imapsync. i am having two zimbra servers.

primary zimbra - 192.168.15.2
backup zimbra - 192.168.15.3

Domain - server1.tm.local (configured same domain on both machines i.e on 15.2 and 15.3)

following this link for imapsync

Main Page - Zimbra :: Wiki achine

i had made imap_users and defined domain,users and their passwords.

user-pawan@tm.local
password-123456

next i had to make zimbra_migration file, but here i am confuse, as having no knowledge of scripting.what i have to do in zimbra_migration file.in that wiki it is in step 3 for zimbra_migration
plz guide me in zimbra_migration file.
Regards,
Pawan
Reply With Quote
  #2 (permalink)  
Old 01-22-2010, 03:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Details of IMAPSYNC is in the wiki at this page: Mail Migration - Zimbra :: Wiki - there are also several threads in the forums that cover migration and IMAPSYNC if you'd like to d a quick search.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 01-22-2010, 03:48 AM
Intermediate Member
 
Posts: 18
Default

is imapsync tool used for mail backup ?
Reply With Quote
  #4 (permalink)  
Old 01-22-2010, 03:58 AM
Moderator
 
Posts: 2,207
Default

It's a tool made to sync two imap mailboxes.

If you consider that "sync" is "backup", then you can use it as backup...
Reply With Quote
  #5 (permalink)  
Old 01-22-2010, 07:06 AM
Intermediate Member
 
Posts: 18
Default

klug
does /zmztozmig.conf file also does the same thing what imapsync does.
Reply With Quote
  #6 (permalink)  
Old 01-22-2010, 07:18 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by linuxguru View Post
klug
does /zmztozmig.conf file also does the same thing what imapsync does.
No, it doesn't.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 01-22-2010, 08:18 AM
Intermediate Member
 
Posts: 18
Default

ok i think now i am getting on right track with the help of u experts.

i gave imapsync n getting this error

zimbra server - 192.168.15.2
zimbra backupserver 192.168.15.3

pawan@tm.local is made on both machines with same password

root@server1:~# imapsync --host1 192.168.15.2 --user1 pawan@tm.local --password1 123456 --host2 192.168.15.3 --user2 pawan@tm.local --password2 123456

this is the error which i am getting

Host server1.tm.local says it has NO CAPABILITY for AUTHENTICATE CRAM-MD5
Error login : [server1.tm.local] with user [pawan@tm.local] auth [CRAM-MD5]: 3 NO mechanism not supported: CRAM-MD5

3 NO mechanism not supported: CRAM-MD5
...propagated at /usr/bin/imapsync line 704.



plz help me.
thx
Reply With Quote
  #8 (permalink)  
Old 01-22-2010, 09:16 AM
Partner (VAR/HSP)
 
Posts: 186
Default

... you probably missed the correct --authmech parameter.

Code:
imapsync --help
will give you the necessary options:

Code:
--host1       <string> : "from" imap server. Mandatory.
--port1       <int>    : port to connect on host1. Default is 143.
--user1       <string> : user to login on host1. Mandatory.
--authuser1   <string> : user to auth with on host1 (admin user).
                         Avoid using --authmech1 SOMETHING with --authuser1.
--password1   <string> : password for the user1. Dangerous, use --passfile1
--passfile1   <string> : password file for the user1. Contains the password.
--host2       <string> : "destination" imap server. Mandatory.
--port2       <int>    : port to connect on host2. Default is 143.
--user2       <string> : user to login on host2. Mandatory.
--authuser2   <string> : user to auth with on host2 (admin user).
--password2   <string> : password for the user2. Dangerous, use --passfile2
--passfile2   <string> : password file for the user2. Contains the password.
--noauthmd5            : don't use MD5 authentification.
--authmech1   <string> : auth mechanism to use with host1:
                         PLAIN, LOGIN, CRAM-MD5 etc. Use UPPERCASE.
--authmech2   <string> : auth mechanism to use with host2. See --authmech1
--ssl1                 : use an SSL connection on host1.
--ssl2                 : use an SSL connection on host2.
You need to add the proper --authmech parameter. PLAIN will work. If your're connecting to IMAPS on the Zimbra Side you need to specify --ssl2 and --port2 too.

HTH

Regards

Andreas
Reply With Quote
  #9 (permalink)  
Old 01-22-2010, 09:49 AM
Intermediate Member
 
Posts: 18
Default

hi andreas
same type of problem somebody was having and he got the solution. here is the link

[SOLVED] Import imap folder - no CRAM-MD5 error

he used noauthmd5 and it worked plz guide me as i am also getting same error.
Reply With Quote
  #10 (permalink)  
Old 01-22-2010, 09:52 AM
Intermediate Member
 
Posts: 18
Default

andreas
this is how i used imapsync command

root@server1:~# imapsync --host1 server1.tm.local --user1 pawan@tm.local --password1 123456 --noauthmd5 --host2 192.168.15.3 --user2 pawan@tm.local --password2 123456 and got this error

Host server1.tm.local says it has NO CAPABILITY for AUTHENTICATE LOGIN
Error login : [server1.tm.local] with user [pawan@tm.local] auth [LOGIN]: 3 NO cleartext logins disabled
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.