jerer

I see. I think we are going to cross that bridge when we get closer. For now we are making v1.17 stable and then look at the outlook api url deprecation.

Cheers.

Just a heads up. As of yesterday, Microsoft prematurely disabled basic authentication on our O365 tenant. This caused IMAP mail fetching to stop working in osTicket. Although this isn't supposed to be deprecated until October. After talking with Microsoft support, supposedly they made a mistake while testing, and they disabled basic auth on many O365 tenants across the globe. I saw a lot of complaints on this all over the internet yesterday. They were able to assist with turning basic authentication back on, but warned it may be shut off again before October.

Anyways, just wanted to give everyone a heads up, and hoping for a stable release soon!

alexbuckland
I'm trying to accomplish this with ZohoMail which is also a cheapo $1 per month mail service. I'm trying to figure out how to set this up. I have ZohoMail pulling data from Microsoft using Imap and that works fine. But I cannot figure out how to setup OsTicket to fetch mail from Zoho Mail. ZohoMail is just a client like Microsoft Outlook, so I don't know what to put for servername, port, etc.
Can you please provide some insight on how you set this up with your Fast Hosts?

Sure. I simply forwarded email from mailbox where the support requests came into. This was setup on 365 (obviously), but before I could turn on forwarding I had to enable it on my tenant, it seems to be turned off by default - you can enable a rule for an individual mailbox or all users here: https://protection.office.com/antispam

Once the email was forwarding I reconnected osticket to the new simple mailbox which allowed pop3 collection.

For sending email, I left this with 365 as SMTP auth seems to still work ok.

nerdyviking88

Should be released in a couple of minutes. Updating our site now to serve the new build (RC2).

Cheers.

Everyone,

There is a new build labeled RC2 as well as a new build of the OAuth2 plugin. You will need RC2 AND the new build of the plugin to get all of the latest patches/fixes.

Cheers.

Updated to RC2, applied new oauth plugin. Still am getting "invalid_client". I also grabbed the source code for the .php files and made the edits @jerer mentioned, and then hydrated the .phar file. Still getting "invalid_client". Will continue to tinker!

    KevinTheJedi

    Hi Kevin,
    I've successfully configure the OAuth2. But when ever I'm trying to enable the email fetching it give me connection close error
    Please find the Screen shot below.

      korali

      Sounds like the outlook server didn't respond correctly or you're having network issues or something. Maybe reach out to your hosting provider/system's administrator and/or MS for further assistance?

      Also, what URLs and Scopes are you using?

      Cheers.

        KevinTheJedi
        Hi Kevin,
        the connection close issue was gone. Now I'm getting AUTHENTICATE failed error attaching screenshot below.
        The Outgoing SMTP configuration has same issue Authentication unsuccessful.
        Also find my scope configuration below.


        Scope configuration:

          korali

          You are using the Graph Resource Details Endpoint and scopes without defining the API. You will need to use the v2.0 outlook Resource Details Endpoint (ie. https://outlook.office.com/api/v2.0/me) as well as the outlook scopes (ie. offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send).

          Cheers.

          @jerer I'm having the same problem you documented (Email Mismatch: Expecting Authorization for xxxx@xx.edu not <blank> ).

          I'm trying to implement your solution but I can't get the plugins to 'rehydrate'. Any tips or can you post your compiled .phar file? I'm getting errors related to Psr/Http and http-factory not found.

          ...2 hours later 🤣

          Got it working. I was never able to successfully build the plugins so I just decompiled the .phar file, made the edits that you suggested and recompiled:

          'attr_username' => 'EmailAddress', // This was "mail" before
          'attr_email' => 'EmailAddress', // This was "mail" before

          Confirmed working / able to fetch mail now. Thank you for sharing your solution!

            The retrieval of e-mails from Office365 also stopped working for us yesterday. The error message points to the problem with the authentication. I installed 1.17 rc2 today, but it dies (white screen) in class osTicketSession, function __construct at the line if ((!defined('MAJOR_VERSION') || $checkdbversion) ...

            I have PHP 8.1.7 and MariaDB 10.5.16, is that sufficient?

            Thanks!

              Only PHP 8.0.xxx will supported

              LbbnPx
              Solved it by commenting the line out, doing the upgrade, and then remove the comment again. Well, I have a backup 😃 Now I have the invalid_client problem, I will see if I can find a solution in this long topic ....

              Everyone,

              We are releasing RC3 and a new build of the plugin today. This new version will allow the ability to edit the email attribute as well as fix some re-authorization issues and other miscellaneous bugs.

              Cheers.