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
  #11 (permalink)  
Old 01-02-2011, 09:13 AM
Junior Member
 
Posts: 8
Default

Hi, got some progress I am on following error now with imapsync

Error login: [sourceip] with user [user@domain.com*root] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.
Error login: [sourceip] with user [user@domain.com*root] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.

root has no read rights on mailboxes on old server (drwx------) is it because of that


This is how I reached there,

1. Imported all users using export file and bulk provision from admin console. Now trying to copy emails using imapsync by referring Migrating from Dovecot with External LDAP - Zimbra :: Wiki

- on old server
1. Updated dovecot.conf from old server with following

auth_master_user_separator = *
passdb passwd-file {
args = /etc/dovecot.master
master=yes
}

2. Ran htpasswd -c /etc/dovecot.master root and restarted dovecot

- on zimbra with imapsync installed
3. Created a test users.txt with user@domain.com*root - included domain name as I have multiple domain in zimbra

4. Created password file host1pass.txt and host1pass.txt with root password

5. Created migrate-imap.sh with the following

#!/bin/bash

host1=sourceIP
#host1 is Source

host2=destIP
#host2 is Dest

cat users.txt | while read
do
username1=`echo $REPLY` # $REPLY is a bash builtin
username2=`echo $REPLY | cut -d\* -f 1` # Strip the star etc
echo "Syncing User $username1 to $username2"
imapsync --nosyncacls --syncinternaldates --authmech1 PLAIN \
--host1 $host1 --user1 "$username1" --passfile1 host1pass.txt \
--host2 $host2 --user2 "$username2" --passfile2 host2pass.txt
done

6. Ran script for one user
[root@mail2]# . migrate-imap.sh
Syncing User user@domain.com*root to user@domain.com
$RCSfile: imapsync,v $ $Revision: 1.350 $ $Date: 2010/09/06 01:05:09 $
Here is a [linux] system (Linux mail2.ffc.local 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64)
With perl 5.8.8 Mail::IMAPClient 3.23
Command line used:
/usr/bin/imapsync --nosyncacls --syncinternaldates --authmech1 PLAIN --host1 sourceip --user1 user@domain.com*root --passfile1 host1pass.txt --host2 destip --user2 user@domain.com --passfile2 host2pass.txt
Temp directory is /tmp
PID file is /tmp/imapsync.pid
Modules version list:
Mail::IMAPClient 3.23
IO::Socket 1.29
IO::Socket::SSL 1.01
Digest::MD5 2.36
Digest::HMAC_MD5 1.01
Term::ReadKey 2.30

Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
Will try to use PLAIN authentication on host1
Will try to use CRAM-MD5 authentication on host2
Host1: imap server [sourceip] port [143] user [user@domain.com*root]
Host2: imap server [destip] port [143] user [user@domain.com]
Banner: * OK Dovecot ready.
Host sourceip says it has CAPABILITY for AUTHENTICATE PLAIN
Error login: [sourceip] with user [user@domain.com*root] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.
Error login: [sourceip] with user [user@domain.com*root] auth [PLAIN]: * BYE Internal login failure. Refer to server log for more information.

Please advise.

Siraj.
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.