So you want to migrate your emails from your hosting to your Gmail and you can’t get it to work with imapsync? You triple checked your login credentials and are correct but transfer still doesnt work. So what is causing error bellow?
Host2 failure: Error login on [184.108.40.206] with user [email@example.com] auth [LOGIN]: 2 NO [ALERT] Please log in via your web browser
You have to login to your Google Apps settings (Security -> Advanced security settings) and change value for Less secure apps to: Enforce access to less secure apps for all users. Than it should work.