IMAP app Component connection problem

I am trying to use IMAP add-on and having difficulty in connecting to my gmail. I have done as follows:

  1. Activated IMAP in my gmail account
    48%20AM
  1. Create IMAP config as follows. Verified the password that is correct.
    09%20AM

Now when I click on Connect button, it fails to connect. I have not used any certificate though.
How can I diagnose what is going on and how to fix it? Thanks for your help.

Hi,
Try to set imap.server.trustAllCertificates = true
in Application Properties -> imap -> server

Regards
Marcin

Hi @marcin.zawadowicz
Just updated as suggested,
36%20PM
Restarted the server and tried again but still failed to connect.

I could connect after turning my gmail account to less secure connection

29%20PM

Is there any way to connect gmail without compromising the security level?

Hi mortoza,

there is a option - please see the following link from google support:

Regards,
Steven