I am able to get messages if I disable my Anti Virus (Kaspersky), so there is no issue with configuration or port. However, I would not like to disable my AV as it is not a solution, I have already tried installing mail.google.com certificate locally as stated in a few posts. I was able to pinpoint the issue to AV and specifically to Web Antivirus as seen below:
It might be tricky to help here, mainly because I have no experience with the Kaspersky Antivirus and its whitelisting possibilities.
I would certainly try to check the logs of the anti-virus/firewall to see if something can be found here. I would also try to whitelist entire UiPath Folder.
I was able to resolve the issue by adding imap.gmail.com to exclusion list on Kaspersky AV as below. I have everything enabled on my AV. I am putting screenshots below, so it can be helpful to other users.