1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-08 11:52:30 +01:00

Updated Connect FreeScout to Microsoft 365 Exchange via OAuth (markdown)

FreeScout 2023-03-14 08:53:08 +03:00
parent 83e0649ffd
commit 6a8675d4e8

@ -40,12 +40,8 @@ The MS365 user you will be using to connect to FreeScout must have a MS365 mailb
![2022-03-09_17-05-51](https://user-images.githubusercontent.com/40499291/157457902-158b6ef5-ead8-409d-ae35-88d920dff5c0.png)
You may see "Error: connection setup failed" in logs from time to time, try to increase "Fetching Interval" in "Manage » Settings » Mail Settings". If it does not help - just ignore it (see [this discussion](https://github.com/freescout-helpdesk/freescout/issues/2757#issuecomment-1439949811)).
### Troubleshooting OAuth Emails Fetching
If you need to debug the process of fetching emails via IMAP & OAuth, add `APP_DEBUG=true` to the .env file and [clear cache](https://github.com/freescout-helpdesk/freescout/wiki/Clearing-the-Cache). After that run the following console command which will show the process of interaction between FreeScout and MS365 IMAP server:
```
php artisan freescout:fetch-emails
@ -53,4 +49,12 @@ php artisan freescout:fetch-emails
After that you can also connect via console directly to the MS365 IMAP server and pass obtained from `php artisan freescout:fetch-emails` instructions:
```
openssl s_client -crlf -connect outlook.office365.com:993
```
```
#### — If you see "Error: connection setup failed" in logs from time to time
Try to increase "Fetching Interval" in "Manage » Settings » Mail Settings". If it does not help - just ignore it (see [this discussion](https://github.com/freescout-helpdesk/freescout/issues/2757#issuecomment-1439949811)).
#### — Error: connection failed; File: /overrides/webklex/php-imap/src/Connection/Protocols/ImapProtocol.php
This may mean that something is wrong in the "Fetching Emails" settings: check Server, Port, etc.