Hi!
I've have an issue in migration process using IMAPsync.
I followed the procedure at the following link: https://community.zextras.com/how-to-use-imapsync-to-migrate-zimbra-to-carbonio-carbonio-ce/
I installed Carbon CE 23.12.0 with default domain carbon.local and in the hostname file mail.carbon.local.
I proceeded with the preparation of the users and their import, while for the Classes of Service I didn't perform any operation having only default and defaultExternal.
I then went directly to step 3 without setting the DNS on the new machine, since I would like to migrate the data with Zimbra running and keep the same IP.
When I go to use the suggested docker gilleslamiral/imapsync with this command:
docker run --rm gilleslamiral/imapsync imapsync \ --host1 IP_SOURCE --ssl1 --user1 user1@example.it --authuser1 admin@example.it --password1 SourceAdminPassword \ --host2 IP_DESTINATION --ssl2 --user2 user1@example.it --authuser2 zextras@carbonio.local --password2 ZextrasAdminPassword
I get the following error as a result, related to the destination host:
Host2 info: authmech [PLAIN] user [user1@example.it] authuser [zextras@carbonio.local] IsUnconnected [] Host2 failure: Error login on [IP_DESTINATION] with user [user1@example.it] auth [PLAIN]: 2 NO AUTHENTICATE failed Host2: failed login on [IP_DESTINATION] with user [user1@example.it] auth [PLAIN]
In contrast, authentication is successful on the source host.
Can someone help me please?
Thank you in advance!
@assistenzaabd
Hi,
Sorry to hear about your trouble.
1. Could you please share a more detailed log?
2. Looks like your host2 authentication failed.
Could you try this? to check if authentication is working or not:
root@Sharif-PC:~# openssl s_client -crlf -connect mail.carbonio.local:993 ** Replace mail.carbonio.local with your carbonio server hostname or IP This command will lead you to read R BLOCK * OK IMAP4rev1 proxy server ready [Then input the following command and check if it is executed successfully or not] read R BLOCK * OK IMAP4rev1 proxy server ready c1 LOGIN zextras "654321" c1 OK [CAPABILITY IMAP4rev1 ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ LOGIN-REFERRALS MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST] LOGIN completed
Let's dig this out 🙂
Thanks and regards,
Sharif
Thank you for your reply
I tested the command you sent.
I ran the command keeping mail.carbon.local as the server because as it is written in the migration guide, the new server must maintain this default for the migration process to work.
In fact, I also ran the command by entering the domain mail.my_domain.it to see if it changed anything. Clearly, I installed a dnsmasq so that the hostname of my old domain would point to the IP of the same carbon server.
In both cases the results are the same.
You can login to the zextras user, but not to the imported users of the old domain.
Below is an example of output with zextras user
--- read R BLOCK * OK IMAP4rev1 proxy server ready c1 LOGIN zextras PASSWORD c1 OK [CAPABILITY IMAP4rev1 ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ LOGIN-REFERRALS MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST] LOGIN completed
Below is an example of output with imported user
--- read R BLOCK * OK IMAP4rev1 proxy server ready c1 LOGIN user@my_domain.it PASSWORD c1 NO LOGIN failed * BYE IMAP server terminating connection closed
From the Admin GUI the old domain and users are present.
One curious behavior I have noticed is that if I create a new user on the old domain (e.g., newuser@my_domain.it), it is accessible.
I await your response.
Thank you in advance.
Regards