Anything else I can try? This won’t show up in my services after restarting.
# Example configuration.yaml entry for smtp Mail.
notify:
- name: "comcast"
platform: smtp
server: "smtp.comcast.net"
port: 587
sender: "[email protected]"
encryption: tls
username: "[email protected]"
password: "comcast password"
recipient:
- "[email protected]"
sender_name: "Home Assistant"
logfile
Logger: homeassistant.components.notify
Source: components/smtp/notify.py:133
Integration: Notifications (documentation, issues)
First occurred: 1:59:36 AM (1 occurrences)
Last logged: 1:59:36 AM
Error setting up platform smtp
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/notify/legacy.py", line 71, in async_setup_platform
notify_service = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 92, in get_service
if mail_service.connection_is_valid():
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 154, in connection_is_valid
server = self.connect()
File "/usr/src/homeassistant/homeassistant/components/smtp/notify.py", line 133, in connect
mail = smtplib.SMTP_SSL(
File "/usr/local/lib/python3.10/smtplib.py", line 1050, in __init__
SMTP.__init__(self, host, port, local_hostname, timeout,
File "/usr/local/lib/python3.10/smtplib.py", line 255, in __init__
(code, msg) = self.connect(host, port)
File "/usr/local/lib/python3.10/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/local/lib/python3.10/smtplib.py", line 1057, in _get_socket
new_socket = self.context.wrap_socket(new_socket,
File "/usr/local/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/local/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)
figured it out. instead of tls, it needed to be starttls