Espo v6 TLS IMAP Gmail - not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kyle
    Senior Member
    • May 2020
    • 143

    Espo v6 TLS IMAP Gmail - not working

    I am trying to setup IMAP using TLS and Gmail. I am not having much luck, any help would be appreciated.

    If i use SSL it also does not work

    I have turned on less secure apps.
    I have enabled POP and IMAP in the settings for the account.


    From the logs:

    [2020-10-26 00:18:30] Espo.DEBUG: API (0) cannot read - connection closed?; POST /InboundEmail/action/testConnection; Input data: {"host":"imap.gmail.com","port":993,"security":"TL S","username":"XXXXXXXXXXXX@gmail.com","password": "*****","emailAddress":"XXXXXXXXXXXX@gmail.com "}; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => InboundEmail [action] => testConnection ) [] [] [2020-10-26 00:18:30] Espo.ERROR: (0) cannot read - connection closed?; POST /InboundEmail/action/testConnection; line: 123, file: /home/v6test1/public_html/vendor/laminas/laminas-mail/src/Protocol/Imap.php [] [] d





  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi Kyle ,

    I've noticed that you are trying to connect to imap.gmail.com. For the IMAP protocol, only SSL is allowed. Read this please https://developers.google.com/gmail/...-smtp#protocol.

    Comment

    • Kyle
      Senior Member
      • May 2020
      • 143

      #3
      Thanks for your input, I had read this and was taking it as SSL at a minimum rather than only SSL (As SSL is deprecated https://en.wikipedia.org/wiki/Transport_Layer_Security). A lot of other references seem to merge SSL and TLS in to one thing when talking about connecting to google via IMAP.

      Comment

      Working...