IMAP Migration from gmail does not work

IMAP Migration from gmail does not work

Hello,

I have tried the following instructions to migrate an email from GMAIL to zoho

https://www.zoho.com/mail/help/pop-imap-migration.html

I tried with POP and IMAP and no luck.

Just to clarify:

Source username:  gmail username
Source password: gmail password
Destination email address:  mail on zoho    (in instructions one screenshot shows that source username and destination email are the same ??? )

I have enabled gmail access for less secure apps in gmail, enabled POP and IMAP, but still does not work.

The following error is reported:

Authentication details provided was rejected by Source server. Kindly provide valid username and password.

Best regards,
Grega