Closed dinan5 closed 2 months ago
Hey there @jbouwh, mind taking a look at this issue as it has been labeled with an integration (imap
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
imap documentation imap source (message by IssueLinks)
had to change utf-8 to ASCII
Same here, using US-ASCII. After lot of access confirmation, works, but after restart... same.
Microsoft has changed their policy on accessing IMAP mailboxes. May be this is what causes issues. It is nothing we can solve here.
I had the same experience. After getting the error, I re-added the SMTP account information, and it worked for a short while before failing again. My eventual workaround solution was to go to a different provider.
My experience with MS is that they have blocked my account several times because HA sending emails is unfortunately flagged as spam. I have had similar experiences using the same Outlook account with the IMAP integration.
Using a different provider has not caused the same issues.
Note: I am paying for the account with the new provider, which likely provides increased thresholds to be flagged as fraudulent/spam.
Microsoft has changed their policy on accessing IMAP mailboxes. May be this is what causes issues. It is nothing we can solve here.
Bad thing, anyway i'm using password app (using 2fa)... i deleted all my password app and re-create one. I hope now works fine...
There is another standard to login in: XOAUTH, but that requires some development to enable that.
Closing this issue as it is not an issue with Home Assistant.
The problem
Unable to authenticate to my outlook email account.
What version of Home Assistant Core has the issue?
2024.7.3
What was the last working version of Home Assistant Core?
2024.7.2
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
IMAP
Link to integration documentation on our website
No response
Diagnostics information
2024-07-23 10:40:45.499 DEBUG (MainThread) [homeassistant.components.imap.coordinator] Wait for hello message from server outlook.office365.com on port 993, verify_ssl: True 2024-07-23 10:40:45.673 DEBUG (MainThread) [aioimaplib.aioimaplib] Received : b' OK The Microsoft Exchange IMAP4 service is ready. [QgBMADEAUAAyADIAMwBDAEEAMAAwADAANQAuAE4AQQBNAFAAMgAyADMALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]\r\n' 2024-07-23 10:40:45.675 DEBUG (MainThread) [aioimaplib.aioimaplib] Sending : b'ALKN0 CAPABILITY\r\n' 2024-07-23 10:40:45.693 DEBUG (MainThread) [aioimaplib.aioimaplib] Received : b' CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+\r\nALKN0 OK CAPABILITY completed.\r\n' 2024-07-23 10:40:45.694 DEBUG (MainThread) [aioimaplib.aioimaplib] tagged status b'ALKN0 OK CAPABILITY completed.' 2024-07-23 10:40:45.694 DEBUG (MainThread) [aioimaplib.aioimaplib] state -> NONAUTH 2024-07-23 10:40:45.694 DEBUG (MainThread) [homeassistant.components.imap.coordinator] Authenticating with xxxxxxxx@outlook.com on server outlook.office365.com 2024-07-23 10:40:45.695 DEBUG (MainThread) [aioimaplib.aioimaplib] Sending : b'ALKN1 LOGIN xxxxxxxx@outlook.com "***"\r\n' 2024-07-23 10:40:47.387 DEBUG (MainThread) [aioimaplib.aioimaplib] Received : b'ALKN1 NO LOGIN failed.\r\n' 2024-07-23 10:40:47.387 DEBUG (MainThread) [aioimaplib.aioimaplib] tagged status b'ALKN1 NO LOGIN failed.' 2024-07-23 10:40:47.388 DEBUG (MainThread) [aioimaplib.aioimaplib] state -> NONAUTH 2024-07-23 10:40:47.405 ERROR (MainThread) [frontend.js.latest.202407100] Failed to format translation for key 'component.imap.config.step.reauth_confirm.title' in language 'en'. Error: The intl string context variable "name" was not provided to the string "Authentication expired for {name}" 2024-07-23 10:40:47.416 ERROR (MainThread) [frontend.js.latest.202407100] Failed to format translation for key 'component.imap.config.step.reauth_confirm.title' in language 'en'. Error: The intl string context variable "name" was not provided to the string "Authentication expired for {name}"
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response