Skip to content

SMTP completely broke with the update to core-2026.3.4 #166505

Description

@ghuh

The problem

I update from from 2026.2 to 2026.3.4 and I got a repair saying that an automation was using an unknown action which is the notify email action.

What version of Home Assistant Core has the issue?

core-2026.3.4

What was the last working version of Home Assistant Core?

core-2026.2.x

What type of installation are you running?

Home Assistant OS

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

Anything in the logs that might be useful for us?

Logger: homeassistant.components.notify
Source: components/notify/legacy.py:108
integration: Notifications (documentation, issues)
First occurred: 11:30:49 AM (1 occurrence)
Last logged: 11:30:49 AM

Error setting up platform smtp
Traceback (most recent call last):
  File "/usr/local/lib/python3.14/smtplib.py", line 405, in getreply
    line = self.file.readline(_MAXLINE + 1)
  File "/usr/local/lib/python3.14/socket.py", line 725, in readinto
    return self._sock.recv_into(b)
           ~~~~~~~~~~~~~~~~~~~~^^^
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 108, in async_setup_platform
    notify_service = await hass.async_add_executor_job(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        platform.get_service, hass, p_config, discovery_info
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 86, in run
    result = ctx.run(self.task)
  File "/usr/local/lib/python3.14/concurrent/futures/thread.py", line 73, in run
    return fn(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 108, in get_service
    if mail_service.connection_is_valid():
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 172, in connection_is_valid
    server = self.connect()
  File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 158, in connect
    mail = smtplib.SMTP(self._server, self._port, timeout=self._timeout)
  File "/usr/local/lib/python3.14/smtplib.py", line 262, in __init__
    (code, msg) = self.connect(host, port)
                  ~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/smtplib.py", line 350, in connect
    (code, msg) = self.getreply()
                  ~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/smtplib.py", line 408, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed: "
                                 + str(e))
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: timed out

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions