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 Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-2010, 02:11 AM
Elite Member
 
Posts: 334
Default Imapsync authuser error

Hi,

I'm trying to migrate old courier-imap RedHat 9 on a site into Zimbra 6 by using imapsync, but experience with authuser error. I'm taking authuser paramater because I don't know each user's password

Authuser parameter seems to be working fine but it copied the authuser mailbox instead of each user as should be.

Below are my logs :
Code:
zcs1:~ # imapsync --host1 192.168.1.2 --authuser1 root --password1 hostrootpassword --user1 user1account --authmech1 PLAIN --host2 10.2.2.4 --user2 vavai@namaperusahaan.co.id --password2 MyPassword --noauthmd5
Quote:
$RCSfile: imapsync,v $ $Revision: 1.300 $ $Date: 2010/01/16 03:34:37 $
Here is a [linux] system (Linux zcs1 2.6.32.12-0.7-xen #1 SMP 2010-05-20 11:14:20 +0200 x86_64)
with perl 5.10.0
Mail::IMAPClient 3.23
IO::Socket 1.30_01
IO::Socket::SSL
Digest::MD5 2.36_01
Digest::HMAC_MD5
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 3.23
Command line used:
/usr/bin/imapsync --host1 192.168.1.2 --authuser1 root --password1 MASKED --user1 user1account --authmech1 PLAIN --host2 10.2.2.4 --user2 vavai@namaperusahaan.co.id --password2 MASKED --noauthmd5
Temp directory is /tmp
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[asia/jakarta]
Will try to use PLAIN authentication on host1
Will try to use LOGIN authentication on host2
Host1 imap server [192.168.1.2] port [143] user [user1account]
Host2 imap server [10.2.2.4] port [143] user [vavai@namaperusahaan.co.id]
Banner: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
Host 192.168.1.2 says it has NO CAPABILITY for AUTHENTICATE PLAIN
Frequently PLAIN is only supported with SSL, try --ssl1 or --ssl2 option
Success login on [192.168.1.2] with user [user1account] auth [PLAIN]
Banner: * OK mail.namaperusahaan.co.id Zimbra IMAP4rev1 server ready
Host 10.2.2.4 says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [10.2.2.4] with user [vavai@namaperusahaan.co.id] auth [LOGIN]
host1: state Authenticated
host2: state Authenticated
Host1 separator and prefix: [.][INBOX.]
Host2 separator and prefix: [/][]
++++ Calculating sizes ++++
Host1 Folder [INBOX] Size: 40743234 Messages: 4802
Host1 Folder [INBOX.Drafts] Size: 0 Messages: 0
Host1 Folder [INBOX.Sent] Size: 0 Messages: 0
Host1 Folder [INBOX.Trash] Size: 0 Messages: 0
Total size: 40743234
Total messages: 4802
Time: 6 s
++++ Calculating sizes ++++
Host2 Folder [Drafts] Size: 0 Messages: 0
Host2 Folder [INBOX] Size: 0 Messages: 0
Host2 Folder [Sent] Size: 547 Messages: 1
Host2 Folder [Trash] Size: 126978 Messages: 20
Total size: 127525
Total messages: 21
Time: 1 s
++++ Listing folders ++++
Host1 folders list:
[INBOX]
[INBOX.Drafts]
[INBOX.Sent]
[INBOX.Trash]
As shown on the above logs, imapsync take about : 4802 messages instead of 1 or 2 user1account messages. 4802 messages are all belongs to root mailbox.

I'm using imapsync version 1.32-28.1. Any help would greatly appreciated.
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #2 (permalink)  
Old 09-05-2010, 06:59 AM
Moderator
 
Posts: 2,207
Default

Just hit this problem too.

What is your Courier-IMAP version?
Reply With Quote
  #3 (permalink)  
Old 09-05-2010, 05:39 PM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by Klug View Post
Just hit this problem too.

What is your Courier-IMAP version?
Courier version 3.0.6 on old Red Hat 9.

Actually, I move the maildir contains account mailbox into openSUSE 11.3 with brand new postfix+courier-imap version 4.7.0-4.1, but hit similar problem. Does this means that auth-user could not be applied against courier-imap (Ok with dovecot as follows on some thread), or does somebody else has successful migration on courier-imap with imapsync+authuser method?

Finally, manage the problem solved by making a primitive script with the following algorithm :

1. Setup local postfix+courier-imap
2. Create one account with pre-define password
3. Rsync data from old mail server into new setup (because the old one is production system, I could not process it onto running system)
4. Looping for each account
5. Replace the pre-define account's maildir with the account's maildir so I can sync between both mailbox without knowing each user's password.
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
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.