[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using imapsync 1.359 - never attempts login to host2


From Clint Dilks <clintd at scms dot waikato dot ac dot nz>
Subject Problem using imapsync 1.359 - never attempts login to host2
Date Tue, 12 Oct 2010 14:41:44 +1300

Hi,

I work for a New Zealand University that is wanting to use imapsync to assist with migrating to GoogleMail. I have used older versions of imapsync in the past and definitely though this would be possible. But upon testing this I found that imapsync hangs never attempting to connect to host2. So to define the problem further I then tried using imapsync to sync mail from one mailbox on our current mail server to another mailbox on our existing mail server. I still see the same behavior. Whichever mailbox I define as Host1 gets logged into but host2 is never contacted.

Any suggestions as to what I am doing wrong? The machine running the sync is a 64 Bit CentOS 5.5 install

/usr/bin/imapsync --debug --debugimap --authmech1 PLAIN --debug --host1 <MAILHOST> --user1 <USER1> --password1 PWCHANGED --tls2 --ssl1 --port1 993 --authmech2 PLAIN --host2 <MAILHOST> --user2 <USER2> --password2 PWCHANGED --tls2 --ssl1 --port2 993

get options: [1]
$RCSfile: imapsync,v $ $Revision: 1.359 $ $Date: 2010/10/08 01:17:29 $
Here is a [linux] system (Linux <HOST running sync> 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:50:31 EDT 2010 x86_64)
With perl 5.8.8 Mail::IMAPClient 3.25
Command line used:
/usr/bin/imapsync --debug --debugimap --authmech1 PLAIN --debug --host1 <MAILHOST> --user1 <USER1> --password1 PWCHANGED --tls2 --ssl1 --port1 993 --authmech2 PLAIN --host2 <MAILHOST> --user2 <USER2> --password2 PWCHANGED --tls2 --ssl1 --port2 993
Temp directory is /tmp
PID file is /tmp/imapsync.pid
/tmp/imapsync.pid already exists, overwriting it
Modules version list:
Mail::IMAPClient 3.25
IO::Socket 1.29
IO::Socket::SSL 1.01
Digest::MD5 2.36
Digest::HMAC_MD5 1.01
Term::ReadKey 2.30


IMAPClient 3.25
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 PLAIN authentication on host2
Host1: imap server [<MAILHOST>] port [993] user [<USER1>]
Host2: imap server [<MAILHOST>] port [993] user [<USER2>]
Host1 connection
Entering myconnect
Calling configure
Read: * OK <MAILHOST> Cyrus IMAP4 v2.2.12-Gentoo server ready
Banner: * OK <MAILHOST> Cyrus IMAP4 v2.2.12-Gentoo server ready
Sending: 1 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=PLAIN SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE
1 OK Completed
Host <MAILHOST> says it has CAPABILITY for AUTHENTICATE PLAIN
Sending: 2 AUTHENTICATE PLAIN
Sent 22 bytes
Read: +
Sending: Y2xpbnRkAGNsaW50ZAAzMWl0ZTVwYWNl
Sent 34 bytes
Read: 2 OK Success (tls protection)
Success login on [<MAILHOST>] with user [<USER1>] auth [PLAIN]
Host2 connection
Entering myconnect
Calling configure