Hi zusammen,
mir ist gestern noch ein Problem mit dem Mailversand untergekommen. Ich hatte meinen account schon erfolgreich eingebunden und dann kam irgendwann dies hier
Bash
[ERROR] [doorpi.action.SingleActions.mailto] couldn't send email
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doorpi/action/SingleActions/mailto.py", line 38, in fire_action_mail
server = smtplib.SMTP_SSL(smtp_host, smtp_port)
File "/usr/lib/python2.7/smtplib.py", line 792, in __init__
SMTP.__init__(self, host, port, local_hostname, timeout)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 316, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python2.7/smtplib.py", line 798, in _get_socket
new_socket = ssl.wrap_socket(new_socket, self.keyfile, self.certfile)
File "/usr/lib/python2.7/ssl.py", line 891, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 566, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 788, in do_handshake
self._sslobj.do_handshake()
SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:581)
Alles anzeigen
So habe ich meinen Mail Account konfiguriert, bisher auch ohne Probleme
Python
[SMTP]
server = smtp.gmail.com
port = 587
use_tls = true
need_login = true
username = xxxxxxxxx@googlemail.com
password = *******
from = Tuersprechanlage
Ich habe mal einen Test per cmdline versucht und folgendes erhalten
Code
pi@DoorPi:~ $ openssl s_client -connect smtp.gmail.com:587
CONNECTED(00000003)
1995659360:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:795:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 289 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
Alles anzeigen
Ein Zertifikatsproblem scheinbar. Any ideas?