Announcement

Collapse
No announcement yet.

Office 365 connection error, in IMAP protocol

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Office 365 connection error, in IMAP protocol

    I'm having an office 365 connection error, in the IMAP protocol, returning "Error 500: cannot login, user or password wrong". I suspect it's something in 2-factor authentication. The latest logs I have are (these are different errors as I tested port 110 and 993 with SSL and TLS)​:

    [2023-02-22 13:23:05] ERROR: (0) cannot read - connection closed?; POST /EmailAccount/action/testConnection; line: 143, file: /home3/apoll384/public_html/www.apollogestao.com.br/crm/vendor/laminas/laminas-mail/src/Protocol/Imap.php [] []
    [2023-02-22 13:23:24] ERROR: (0) cannot login, user or password wrong; POST /EmailAccount/action/testConnection; line: 243, file: /home3/apoll384/public_html/www.apollogestao.com.br/crm/vendor/laminas/laminas-mail/src/Storage/Imap.php [] []​

    Has anyone ever experienced this?​

  • #2
    Originally posted by apollo View Post
    I'm having an office 365 connection error, in the IMAP protocol, returning "Error 500: cannot login, user or password wrong". I suspect it's something in 2-factor authentication. The latest logs I have are (these are different errors as I tested port 110 and 993 with SSL and TLS)​:

    [2023-02-22 13:23:05] ERROR: (0) cannot read - connection closed?; POST /EmailAccount/action/testConnection; line: 143, file: /home3/apoll384/public_html/www.apollogestao.com.br/crm/vendor/laminas/laminas-mail/src/Protocol/Imap.php [] []
    [2023-02-22 13:23:24] ERROR: (0) cannot login, user or password wrong; POST /EmailAccount/action/testConnection; line: 243, file: /home3/apoll384/public_html/www.apollogestao.com.br/crm/vendor/laminas/laminas-mail/src/Storage/Imap.php [] []​

    Has anyone ever experienced this?​
    Are you using Oauth2.0 to connect or just name and password?
    If the latter, it will not work. Microsoft365 requires you to connect to IMAP only through Oauth2.0. In that case you need the outlook extension.
    Outlook Integration is an official add-on for EspoCRM. A license is perpetual to the purchased version of Outlook Integration and covers free major and minor upgrades for one year.

    Comment


    • #3
      thanks Akemi.
      I was trying with username and password only. Is it possible to configure without purchasing the outlook extension? Example:



      Comment


      • Akemi
        Akemi commented
        Editing a comment
        Hi Apollo,

        No unfortunately not. There are no options in EspoCRM to set required fields necessary for Oath. The outlook intergration extension will provide those fields. From what i read on this forum it works well. We might buy it in the future.

        The only thing that is working is SMTP with basic authentication. So sending out e-mails. Microsoft is not requiring Oauth for that. (YET!)

    • #4
      i am facing this error when i am trying to test connection on personal mail using imap outlook , whenever i am trying i got error{0} messge
      this is log => ERROR: (0) cannot read - connection closed?; POST /EmailAccount/action/testConnection; line: 143, file: /opt/lampp/htdocs/espocrm/vendor/laminas/laminas-mail/src/Protocol/Imap.php

      Comment

      Working...
      X