Comments (17)
Does it happen all the time or from time to time?
from freescout.
unfortunately the error exists since more than one week.
from freescout.
https://github.com/freescout-helpdesk/freescout/wiki/Fetching-Emails#troubleshooting-fetching
from freescout.
Following error-message in the logs.
We are not using M365. We are using Exchange on prem. All other accounts work.
Checked the troubleshooting-fetching FAQ, but still :
Date | Event | Error | Mailbox -- | -- | -- | -- Juni 17, 15:35:02 | Fehler beim Empfangen der E-Mail | Error: connection setup failed; File: /www/html/vendor/webklex/php-imap/src/Client.php (391) | Calenso HelpDeskfrom freescout.
Did it work before?
The only way to investigate it is for someone to check on your server or you can create a temporary mail account and send to [email protected]
from freescout.
Yes, it worked since February and without any change it stopped working. I checked again all Exchange settings.
from freescout.
Try to change lines 366-370 in /vendor/webklex/php-imap/src/Client.php to:
} catch (ErrorException $e) {
throw new ConnectionFailedException("connection setup failed - ".$e->getMessage(), 0, $e);
} catch (Exceptions\RuntimeException $e) {
throw new ConnectionFailedException("connection setup failed - ".$e->getMessage(), 0, $e);
}
After that try to fetch emails again and you should get more detailed error message (post it here).
from freescout.
Here is the updated /vendor/webklex/php-imap/src/Client.php file, try it to get more detailed error messages:
Client.zip
from freescout.
Which one of these ?
/assets/install/vendor/symfony/http-kernel/Client.php
/assets/install/vendor/webklex/php-imap/src/Client.php
/assets/install/vendor/webklex/laravel-imap/src/IMAP/Facades/Client.php
/assets/install/overrides/webklex/laravel-imap/src/IMAP/Client.php
/assets/install/overrides/guzzlehttp/guzzle/src/Client.php
/www/html/vendor/symfony/http-kernel/Client.php
/www/html/vendor/webklex/php-imap/src/Client.php
/www/html/vendor/webklex/laravel-imap/src/IMAP/Facades/Client.php
/www/html/overrides/webklex/laravel-imap/src/IMAP/Client.php
/www/html/overrides/guzzlehttp/guzzle/src/Client.php
from freescout.
/www/html/vendor/webklex/php-imap/src/Client.php
Or you can simply update FreeScout to the latest version. It has already been published.
from freescout.
This made my troubleshooting much better. We deleted the account from our exchange server and re-added it. Now it works !
Great support ! Thank you so much.
from freescout.
Great. So what was the error message and what was the problem?
from freescout.
The error message was : Error: connection setup failed: Authentication failed; File: /www/html/vendor/webklex/php-imap/src/Client.php (391)
so I thought : if he is not able to authenticate and all other accounts have the same settings and work, it has something to do with the exchange-account. So, I deleted the user and account and re-added it. Workes as charm. Microsoft is doing strange things sometimes. :-)
from freescout.
I am having this exact same issue, but on a brand new instance of Freescout. I have never been able to get email fetching to work. The error is identical. I've tried a couple of different admin emails (admin emails that manage MS365). But nothing seems to work. all I see is this:
Error: connection setup failed: Authentication failed; File: /www/html/vendor/webklex/php-imap/src/Client.php (391)
which is pretty cryptic. I don't know. If all else works and IMAP and SMTP are allowed already on my chosen user email acccount, I am at a loss.
from freescout.
@jimmie-jam For MS365 you need to use modern oAuth IMAP authentication: https://github.com/freescout-help-desk/freescout/wiki/Connect-FreeScout-to-Microsoft-365-Exchange-via-oAuth
from freescout.
@jimmie-jam For MS365 you need to use modern oAuth IMAP authentication: https://github.com/freescout-help-desk/freescout/wiki/Connect-FreeScout-to-Microsoft-365-Exchange-via-oAuth
Thank you. My biggest issue with this is I don't know the location of the .env file to add the oAuth parameter, or enable debug to troubleshoot. I have asked for that location on another thread, but no one is answering that question.
from freescout.
There is no such thing as oAuth parameter
in .env file. Simply follow the instruction above.
from freescout.
Related Issues (20)
- Freescout - 3CX integration HOT 1
- Receive emails without SMTP or POP3 HOT 1
- Is there a way to set a custom header to a custom field? HOT 1
- Workflow Module: Body Customer Message Contains Condition not Matching HOT 5
- Question: Plan for SMTP when Google Workspace removes "allow less secure apps" HOT 1
- Adding Time Log Entry for day that has passed? HOT 1
- Workflow Module with Action "Move to mailbox" is not working HOT 12
- Wallboards Module: Editing permissions for wallboards not working HOT 3
- Reports Module: Productivity Reports - Inconsistencies between Closed Issues and Resolution Time HOT 3
- iOS app forgets which url to use HOT 1
- Add old conversation context to `conversation.state_changed` event HOT 2
- Unable to Send Emails and Auto-Reply Not Working in FreeScout HOT 5
- Add Max File Upload Size restriction to Chat Module HOT 1
- How do I turn off email notifications completely? HOT 4
- Call to a member function getFirstName() on null HOT 1
- Variables from Saved Replies are gone HOT 1
- Migrated to new server, but file path keeps somewhere remembered? HOT 3
- Customer Data Enrichment not working HOT 1
- Missing "disconnect" button in connection settings of outlook mail account HOT 2
- Search for customer fields content does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freescout.