Here is the problem :
My client moved to another server, and they have changed domain name servers already. Old server is still active. Problem is that I have to migrate massive amount of email accounts, and another problem is they don't have cPanel credentials so my only option is to connect to each account individually and move the messages.
I wanted to use
imapsync to do the migration but it can't connect to old server for some reason.
I have modified my
hosts file on local machine and setup
mail.domain.com to point to old ip address for smtp server and tried to connect with outlook and it worked (made sure it reads messages from the old server).
So I don't know why
imapsync doesn't work since I've successfully connected with outlook on port
This is how I ran the command (I'm running it from my server where I have also modified
hosts file) :
imapsync --host1 mail.domain.com --user1 firstname.lastname@example.org -password1 pass --host2 localhost --user2 email@example.com --password2 pass
It connects successfully to my localhost but when it tries to connec to old server this is what I get :
Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. Host1: will try to use LOGIN authentication on host1 Host2: will try to use LOGIN authentication on host2 Host1: imap connexion timeout is 120 seconds Host2: imap connexion timeout is 120 seconds Host1: IMAP server [mail.domain.com] port  user [firstname.lastname@example.org] Host2: IMAP server [localhost] port  user [email@example.com] Host1: connecting and login on host1 [mail.domain.com] port  with user [firstname.lastname@example.org] Host1 failure: can not open imap connection on host1 [mail.domain.com] with user [email@example.com]: Unable to connect to mail.domain.com:
I have scanned old mail server IP on port 143 with
imap is running properly. I can connect to old server with outlook and fetch emails, but
imapsync is saying he can't connect?
Just to note, I have tried connecting to mail server with out modifing hosts by using ip of old mail server but it didn't work.