core
core copied to clipboard
SMTP Notification stopt working with Outlook.com
The problem
Out of the Blue the integration stop working with outlook.com
What version of Home Assistant Core has the issue?
core-2024.9.3
What was the last working version of Home Assistant Core?
core-2024.9.1
What type of installation are you running?
Home Assistant Container
Integration causing the issue
SMTP
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smtp
Diagnostics information
No response
Example YAML snippet
notify:
- platform: smtp
name: outlook_email
server: smtp-mail.outlook.com
port: 587
timeout: 15
sender: [email protected]
encryption: starttls
username: [email protected]
password: !secret smtp
recipient:
- [email protected]
sender_name: Home Assistant
debug: true
Anything in the logs that might be useful for us?
Logger: homeassistant.components.smtp.notify
Bron: components/smtp/notify.py:165
integratie: smtp (documentatie, problemen)
Eerst voorgekomen: 19:53:45 (1 gebeurtenissen)
Laatst gelogd: 19:53:45
Login not possible. Please check your setting and/or your credentials
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 165, in connection_is_valid
server = self.connect()
^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 158, in connect
mail.login(self.username, self.password)
File "/usr/local/lib/python3.12/smtplib.py", line 750, in login
raise last_exception
File "/usr/local/lib/python3.12/smtplib.py", line 739, in login
(code, resp) = self.auth(
^^^^^^^^^^
File "/usr/local/lib/python3.12/smtplib.py", line 662, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.139 Authentication unsuccessful, basic authentication is disabled. [AS4P189CA0013.EURP189.PROD.OUTLOOK.COM 2024-10-01T17:53:45.897Z 08DCE1D9067A3E4B]')
Additional information
In the log, there is 'Authentication unsuccessful, basic authentication is disabled.' My suspicion is that Microsoft has disabled it. https://support.microsoft.com/en-us/office/outlook-and-other-apps-are-unable-to-connect-to-outlook-com-when-using-basic-authentication-f4202ebf-89c6-4a8a-bec3-3d60cf7deaef