mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Outbound/Inbound Mail: Office365 SMTP Error: Could not authenticate. v7.13 #4924
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#4924
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 @bunglex on GitHub (Jan 13, 2023).
Issue
Can't set 'Outbound Email' or create 'Personal Outbound Email Account because authentication fails.
Expected Behavior
After setting up 'External OAuth Provider' and 'External OAuth Connector' and successfully retrieving an Access and Refresh Token, you should able to configure 'Outbound Email Settings' and setup a 'Personal Outbound Email Account', and also create inbound email account.
In the detail page for Personal Outbound Email Account , the 'send test email' should send test email when the correct settings are used.
Actual Behavior
In the detail page for Personal Outbound Email Account , the 'send test email' fails and returns an SMTP log that states
Authentication unsuccessful, the user credentials were incorrect.SMTP Error: Could not authenticate.SuiteCRm logs :
However, if you re-enter the password 'after' opening the page, the test succeeds and the email is sent correctly.
forum post here
Possible Fix
unknown
Steps to Reproduce
Authentication fails and displays SMTP Log
Test passes and email is sent
Context
Can't setup an office365 outbound or inbound email account
Your Environment
@SuiteBot commented on GitHub (Jan 14, 2023):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/oauth-connection-for-inbound-emails/87421/5
@SuiteBot commented on GitHub (Jan 14, 2023):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/imaphandler-errors-how-to-setup-inbound-email-for-office365-v7-12-5/87565/8
@timo-ecm2 commented on GitHub (Jan 16, 2023):
Yes I have a similar issue, only I was specific busy with inbound email account.
@greentreegroup commented on GitHub (Jan 20, 2023):
we are also having issues connecting m365 to suitecrm when sending emails.
@timo-ecm2 commented on GitHub (Jan 23, 2023):
What about connecting to a gmail account, happens the same?
@bunglex commented on GitHub (Jan 27, 2023):
the password is saved and the email sent correctly when using a gmail account
?
@timo-ecm2 commented on GitHub (Jan 30, 2023):
ok thnx @bunglex for the information. Do you know where I can find a good manual / information for a gmail account
@Lehnerr commented on GitHub (Apr 14, 2023):
I have the same issue, pls help
@pgorod commented on GitHub (Apr 14, 2023):
Does this still occur on the latest 7.13?
@Lehnerr commented on GitHub (Apr 14, 2023):
yes 7.13.2
@SuiteBot commented on GitHub (May 10, 2023):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/email-setup-help-and-explanation/88999/2
@pstevens71 commented on GitHub (May 24, 2023):
I suspect it might be this issue: there is a fix proposed and it works (I tested it).
https://github.com/salesagility/SuiteCRM/issues/9457
@chris001 commented on GitHub (May 24, 2023):
@pstevens71 That link leads to a non existent page.... this is the one: https://github.com/salesagility/SuiteCRM/issues/9457
@pstevens71 commented on GitHub (Jun 27, 2023):
The previous #9457 doesn't seem to work for me on 7.13.3. I just cannot seem to authenticate outbound email.
I've tried ins sugarmailer.php to use the debugging to force the correct password and it works no problem. However, I cannot get test to work or after it's saved to work. I checked the DB and there are values in the password. Anyone know the password encryption? Is it MD5?
Also further info.... when using a gmail account with an app password, I can send a test and verify. However, the user cannot send with this account. (yes I have the option selected).
@rmunoz10 commented on GitHub (Aug 3, 2024):
v7.14.4 Inbound fails too.
Sat Aug 3 10:37:00 2024 [21013][1][FATAL] ImapHandler trying to use a non valid resource stream.
Sat Aug 3 10:37:00 2024 [21013][1][FATAL] ImapHandler trying to use a non valid resource stream.
Sat Aug 3 10:38:00 2024 [21013][1][FATAL] An Imap error detected: "IMAP open error: Can not authenticate to IMAP server: Empty startup greeting (outlook.office365.com:993)"
Sat Aug 3 10:38:00 2024 [21013][1][FATAL] An Imap error detected: "IMAP open error | debug data"
Sat Aug 3 10:38:00 2024 [21013][1][FATAL] An Imap error detected: "ImapHandler:open: {outlook.office365.com:993/service=imap}INBOX"
@pstevens71 commented on GitHub (Aug 5, 2024):
Hey @rmunoz you can't use IMAP for O365, it's no longer supported. You have to setup Oauth.
@rmunoz commented on GitHub (Aug 5, 2024):
@pstevens71 I guess you mean @rmunoz10 :D