the way I would do it imapsync --syncinternaldates --host1 sourceserver --host2 destinationserver --user1 useracctonsrc --authuser1 adminuseronsrc --password1 adminpassonsrc --user2 useracctondest --authuser2 adminuseronsrc --password2 adminpassondest --ssl1 --port1 7993 --ssl2 --port2 7993 --folder INBOX(and the rest of the options you may need) |