![](https://)
This generates a 500 error [06-Sep-2024 10:42:40 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /home/soporte/public_html/include/laminas-mail/src/Protocol/Imap.php on line 205
I have followed all the steps to configure oauth 2.0
sergiostark
What produces the error? Saving changes or when configuring oauth2? Also, when it times out like that there is usually a fatal error being logged in your PHP/server logs or the server cannot connect to the mail server.
Cheers.
KevinTheJedi
When saving it does not generate any problem and we have tested the Microsoft API with Postman and it works well. But not in Osticket.
KevinTheJedi In error_log only this appears to me
[09-Sep-2024 09:12:54 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /home/soporte/public_html/include/laminas-mail/src/Protocol/Imap.php on line 205
That simply means the request is taking too long and timing out. I would recommend contacting your Microsoft admin and/or a Microsoft professional to further assist you. You will need to look at the logs on the Microsoft side to see why the connection is timing out.
This is a Microsoft API, I don't see the logs anywhere.
As a note, if I only leave INBOX in the email search, it works and marks them as read, but it is not able to move them to another folder.
Then maybe the authorized user doesn’t have enough permissions to move mail? I’m not a windows guy so you’ll need to reach out to your mail provider or research online this specific error.