mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
PHP 8.1/8.2 - "Check Inbound Mailbox" Job fails on Email Accounts that use Basic Auth #4960
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#4960
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 @johnM2401 on GitHub (Feb 17, 2023).
Issue
When the "Check Inbound Mailboxes" job runs, it appears as though Inbound Accounts that use Basic Auth are experiencing issues.
Using either PHP8.1 or PHP8.2, Running:
php -f cron.phpDoes not read Basic Auth accounts, returning:

"Could not get an IMAP connection resource for ID [mailbox ID]"
(Both IDs in this screenshot are Basic Auth Mailboxes)
I also have one more mailbox that uses Oauth2, but this appears to import as expected.
Expected Behavior
Inbound Mail Accounts should be importable, even when Basic Auth.
Actual Behavior
Mail Accounts that use Basic Auth are not Imported, and instead skipped.
Possible Fix
Steps to Reproduce
php -f cron.phpto fire the "Check Inbound Mailboxes" jobYour Environment
@SuiteBot commented on GitHub (Feb 17, 2023):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/enable-smtp-over-ssl-or-tls-not-saving-setting/87920/8
@gunnicom commented on GitHub (Aug 30, 2023):
Same problem for me after update from 7.12.12 to 7.14
Edit:
For me it was a combination of update and mismatch in DNS name to the certificate on our Exchange server. It seems it is stricter now with that mismatch than before.