Announcement

Collapse
No announcement yet.

IMAP/SMTP plain auth is deprecated Office 365 / Gmail now requires OAuth 2.0

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

  • IMAP/SMTP plain auth is deprecated Office 365 / Gmail now requires OAuth 2.0

    Hi guys!
    Correct me if I am wrong, but Google and Microsoft will not support classic IMAP/SMTP username/password authentication, now they will require the OAuth 2.0 authentication.
    There are many articles about this topic,
    https://docs.microsoft.com/en-us/exc...xchange-online
    https://gomoxie-portal.kb.net/portal/articles/6943
    https://wpmailsmtp.com/gmail-less-secure-apps/

    'If your in-house application needs to access IMAP, POP, and SMTP AUTH protocols in Exchange Online, follow these step-by-step instructions to implement OAuth 2.0 authentication: Authenticate an IMAP, POP, or SMTP connection using OAuth.'

    We cannot set up Office 365 email access, there is no option available.

    So my question is, maybe I missed something, is there an app to perform OAuth 2.0 for Gmail and Microsoft?

    Thank you!

  • #2
    Hi - keen to know if there will be a version to address this.

    Comment


    • #3
      Would this workaround help (Microsoft)?
      https://support.microsoft.com/en-us/...a-a6f2979a7944

      It is explained for Googlemail here: https://www.youtube.com/watch?v=WN9l5VWjUTw
      Last edited by shalmaxb; 06-30-2022, 02:21 PM.

      Comment


      • #4
        Thanks for your kind replies,

        >Would this workaround help (Microsoft)?
        https://support.microsoft.com/en-us/...a-a6f2979a7944

        I tried, nope, the will drop non oAuth 2.0 support for IMAP connections


        >It is explained for Googlemail here: https://www.youtube.com/watch?v=WN9l5VWjUTw

        Hope this will work, thanks

        Comment


        • #5
          Google Integration and Outlook Integration both support OAuth login for emails (for a couple of years already). Not sure about implementing unified solution into Espo open source in the future. It doesn't depend only on me.

          Comment


          • #6
            Anybody tried App Passwords for Gmail? Do they work with Espo?

            Comment


            • #7
              Hi Russ,

              I can say with confidence that IMAP and SMTP for Outlook 365 works the same as before.
              For the first time I set up Outlook 365 six months ago (approximately) with the current email for EspoCRM, and now in the latest version of EspoCRM I entered the same login and password that were used earlier, then I used outlook.office365.com for IMAP, and smtp.office365com for SMTP. All test connections were successful and test emails were sent.

              As for IMAP and SMTP for Google, you just need to enable 2-Step-Verification (https://support.google.com/accounts/answer/185839) and create an App Password (https://support.google.com/accounts/answer/185833). This App Password will need to be used in EspoCRM for Outbound Emails, IMAP and SMTP in place of your normal, initially set password.

              Comment


              • #8
                Update:
                I figured out how it works:

                https://docs.espocrm.com/extensions/...gration/email/

                If "old" E-Mail account exists, it should be deleted first, then create a new one. I am not sure if "empty" password is possible to be set.

                Looks like that works for E-Mail sending / recieving, I have to proove if sended E-Mail looks "very well" instead of "not well" on different recieving clients.
                But for "normal" IMAP Feature of Espo in future (for O365 usage) will not work from October 2022 on anymore without purchasing Outlook Plugin, that should be sure (for Business O365 Accounts).

                Earlier:
                Russ , lazovic
                Hi, I think that you are wrong (lazovic). Microsoft will drop Basic Auth at October 2022 for SMTP / IMAP and further, like they call it "unsafe" protocols.
                Your Workarount will not work for Business Accounts, maybe for private accounts, I don't know.
                You can only delay if Microsoft turns off SMTP / IMAP before October 2022. (Happened to us, and some IMAP Accounts where able to login, some where not)

                After October 2022 this features get useless at EspoCRM if you don't want to use the O365 Plugin.

                yuri , shalmaxb
                Sorry, but O365 Plugin has several disadvantages and missing features (We bought but we do not use, Update: only for E-Mail).
                We have programmed our own Scripts (Phython, exchangelib I think, triggered by PHP and via Webhook Queues) nearly completely outside of Espo and use API User for that.

                The script compares all objects (for meetings eg. max. 180 days in the past and all future meetings) with each other and creates, deletes or updates the changed data accordingly.

                The synchronization of contacts (Group Folder and Sub-Folder of every user's account - Sub-Folder of Outlook-Contact-Folder because of Apple iOS Bug) and appointments is one-way. This means that changed data in Outlook will be overwritten. For the tasks, the status will also be changed to Espo if it has changed to Exchange. All other task fields are overwritten. Objects created manually in Outlook (e.g. appointments) are ignored and not changed or deleted.

                We create objects for single Users and a Group Calendar for round about 25 employees. It was impossible to reach the goals with Espo O365 Plugin.
                Furthermore a cuple of other systems fetch this Data and store in their own Databases. (e.g. VOIP)

                For Espo we use much E-Mail automated Imports via IMAP4 for Cases, Meetings, Accounts, Contacts, Offers and on an on.

                All those things won't be functional from October on. Sinking efficiency by Espo round about 40 percent i guess.
                I think much Espo Users / Companies use IMAP instead of O365 Plugin because of Bugs and missing features. (e.g. even not possible to send a html E-Mail looking "normal" - on the opposide but with IMAP looking very well)

                Comment


                • yuri
                  yuri commented
                  Editing a comment
                  What bugs Outlook Integration has?

                  > even not possible to send a html E-Mail looking

                  What does this mean? Outlook Integration has nothing to do with how email is looking. It just sends additional authentication data when connecting to SMTP/IMAP.
                  Last edited by yuri; 07-07-2022, 09:53 AM.

                • macistda
                  macistda commented
                  Editing a comment
                  I will activate and see if this problem will come back again from users.

                • bandtank
                  bandtank commented
                  Editing a comment
                  I have not had any issues with the Outlook extension. My emails are always sent as HTML.
              Working...
              X