Hello. I have a problem with imapsync moving mail accounts from squirrelmail to Zimbra.
The task is to move mail from mailserv1.domain.com to mailserv2.domain.com
On the mailserv1 is open only IMAPs. (port 993).
Mailserv2 is a zimra server.
According to this wiki
User Migration - Zimbra :: Wiki , i tried this:
Code:
# imapsync \
--buffersize 8192000 --nosyncacls --subscribe --syncinternaldates \
--host1 mailserv1.domain.com --user1 user1 --password1 password1 --ssl1 --port1 993 \
--host2 mailserv2.domain.com --user2 user2 --password2 password2 --ssl2 --port2 993 \
--noauthmd5
The result is: pause for a several minutes and then
Code:
Can not open imap connection on [mail.iphil.ru] : Socket closed while reading data from server.
I also tried:
Code:
$imapsync --host1 mailserv1.domain.com --ssl1 --host2 mailserv2.domain.com –justconnect
The same result.
What might be the reason?
I tested imapsync without SSL, using 143 port (from one zimbra server to another) – it works good. On the Zimbra sever Clear Text Login is enabled.
Zimbra Proxy is not installed.
Maybe the problem is with auth method? Cause on –port1 993 it hangs. On any other value it prints:
Code:
Can not open imap connection on [mailserv1.domain.com] : Unable to connect to mailserv2.domain.com: Connection refused
Any help and advices are welcome. Thanks for your attention.