mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Suite 7.14.1 Inbound Email Cannot be Retrieved #5125
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maarisk on GitHub (Nov 1, 2023).
Inbound e-mails are not retrieved. When user selects in Profile -> Inbound Accounts -> -> Test Connection, user gets error "Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication"
Expected Behavior
User sees inbound e-mails as well as Test Connection returns success.
Actual Behavior
Error message: Can not authenticate to IMAP server: The Auth_SASL package is required for DIGEST-MD5 authentication
Possible Fix
Steps to Reproduce
or
Go to e-mail inbox.
Context
As a result of this issue, cannot import neither incoming nor outgoing emails into CRM rendering this feature useless.
Your Environment
@ckangwei83 commented on GitHub (Nov 9, 2023):
Face similar issue. Somehow i notice the imap2 is not working fine. So i am trying to use Native instead. Made changes in file below.
modules/InboundEmail/InboundEmail.php line 8626
By default it will return imap2 and will not trigger native method. So i introduce sugar_config and in the config_override.php to add in
$sugar_config['imap_handler'] = 'native';There are still some issue whereby i am not able to list mailbox folder when doing configuration in inbound email. But i can enter the mailbox myself into the box and the inbound email process scheduler still works.
@MaxSprea commented on GitHub (Nov 17, 2023):
Hi, I had similar issues and with some trial & error I managed to make the native ImapHandler work.
The main cause of problems is the change in return types of several Imap related functions in PHP>=8.1
For example: imap_open returns an IMAP\Connection instance now (see here) instead of a resource and the functions in the native ImapHandler test for a valid resource (which now returns false).
I had to modify several functions of the ImapHandler to make it work, here are my modifications:
Note that the imap_is_open function i used in ping() and close() was introduced in PHP 8.2 to solve some issues on the imap_ping function, if you have a previous PHP version it will not work.
Please keep in mind this was a quick hack as I needed to make it work ASAP, take the time to test it and correct any errors before using in a production environment.
These modifications also work on suitecrm 8.4.
@meierwitt commented on GitHub (Jan 5, 2024):
@MaxSprea In which file did you make the changes? Is it:
include/Imap/ImapHandler.php
@meierwitt commented on GitHub (Jan 5, 2024):
Hello, I have the same problem with SuiteCRM 7.14.2 and PHP 8.2 on a Linux Server with IMAP from netcup.de ISP
@meierwitt commented on GitHub (Jan 5, 2024):
O.k. - thanks to @MaxSprea and @ckangwei83 - I tested this and it works for me.
Frank
@chris001 commented on GitHub (Jan 6, 2024):
This needs a PR so Inbound Email will work on PHP 8.1+. Anyone?
@maarisk commented on GitHub (Jan 11, 2024):
None of the solutions provided here work for me. Switched back to PHP 7.4 due to other issues, but inbound e-mails still don't work and get the same error message.
@chris001 commented on GitHub (Jan 15, 2024):
The fix is:
Run these commands on your systems, and report back your results.
@MaxSprea commented on GitHub (Jan 18, 2024):
Thanks, I can confirm this fixes the issue with most IMAP servers I tried except from Hetzner's where I get this response:
I will try troubleshooting this as soon as I have some free time as searching for the specific error did not yield any useful solution.
@pgorod commented on GitHub (Jan 18, 2024):
If this is a matter of installing a component on the server, it's not a SuiteCRM bug - but given that email configuration in SuiteCRM is already more than complex enough, I wonder if a simple PR could be made to just make the situation obvious?
Like print something in the screen or in the logs saying what is missing.
@chris001 commented on GitHub (Jan 20, 2024):
@MaxSprea
Could you ask Hetzner tech support, what exactly does their IMAP server mean by that error message, "
A0001 BAD Mate, try AUTHENTICATE <mechanism>"@maarisk commented on GitHub (Mar 10, 2024):
With Kerio Connect mailserver this doesn't fix an issue.
Installed packages, channel pear.php.net:
Package Version State
Archive_Tar 1.4.14 stable
Auth_SASL 1.2.0 stable
Console_Getopt 1.4.3 stable
PEAR 1.10.13 stable
Structures_Graph 1.1.1 stable
XML_Util 1.4.5 stable
php.ini points include_path to PEAR package dir.
@chris001 commented on GitHub (Mar 10, 2024):
@maarisk please paste the text of the error messages coming from your Kerio Connect IMAP server.

Also, what's your Security Policy settings on this screen: