"Unable to connect to the server" when adding an account to migration

"Unable to connect to the server" when adding an account to migration

Hi there, 

I'm trying to add my gmail account in order to migrate it here.
I have enabled POP and IMAP 

Attached are the screenshots of the server config and the error I see.

Thanks!