Hallo,
hab hier https://forum.fhem.de/index.php/topic,54155.msg597977.html#msg597977 (https://forum.fhem.de/index.php/topic,54155.msg597977.html#msg597977) schon gefragt bzgl meines Problem's mit googlemail, versuch's jedoch noch einmal in nem neuen Thread (so wie von der Boardsoftware vorgeschlagen, da Thread schon alt ist)
und zwar erhalte ich immer im Log:
2017.03.03 09:50:40.909 4: mailTest: param to is now 'xxxx@gmail.com' (attribute 'to')
2017.03.03 09:50:40.909 4: mailTest: param smtpport is now '587' (attribute 'smtpport')
2017.03.03 09:50:40.909 4: mailTest: param smtphost is now 'smtp.gmail.com' (attribute 'smtphost')
2017.03.03 09:50:40.910 4: mailTest: param subject is now 'FHEM' (attribute 'subject')
2017.03.03 09:50:40.910 4: mailTest: param from is now 'xxxx@gmail.com' (attribute 'from')
2017.03.03 09:50:40.910 4: mailTest: param authfile is now '/opt/fhem/msgmailauth.google' (attribute 'authfile')
2017.03.03 09:50:40.911 4: mailTest: param cc is now '' (attribute 'cc')
2017.03.03 09:50:40.911 4: mailTest: param mtype is now 'plain' (attribute 'mailtype')
2017.03.03 09:50:40.912 4: mailTest: mailtype is text/plain
2017.03.03 09:50:41.043 3: mailTest: try to connect with Net::SMTP::SSL
2017.03.03 09:50:41.117 0: mailTest: Can't connect to host smtp.gmail.com: SMTP Error: Can't connect to host smtp.gmail.com
Internals:
DEF xxxxx@gmail.com xxxxx@gmail.com smtp.gmail.com /opt/fhem/msgmailauth.google
NAME mailTest
NR 89
STATE ready
TYPE MSGMail
Readings:
2017-03-03 09:39:11 msgcount 0
2017-03-03 09:38:51 state clear
Attributes:
CR 1
authfile /opt/fhem/msgmailauth.google
from xxxxx@gmail.com
loglevel 6
mailtype plain
smtphost smtp.gmail.com
smtpport 587
subject FHEM
to xxxxx@gmail.com
verbose 5
System ist letztes Debian mit allen updates.
Natürlich hab ich auch port 465 versucht.
Das senden über telnet funktioniert, also password=OK.
Eventuell jemand dies am laufen, und net idee?
Besten Dank im Voraus!
Hi,
in meiner Installation funktioniert das, allerdings ist bei mir das Attribut smtpport nicht gesetzt. Kannst du das mal rausnehmen? Per Default sollte das port 465 sein.
Grüße,
Andy.
Leider das Gleiche, erhalte dann zwar im Log
param smtpport is now '465' (attribute 'smtpport') (also default, da attribute deleted)
Jedoch bekomme ich:
Can't authenticate: SMTP Error: Can't authenticate: 5.5.2 Syntax error. y49sm28900793wry.18 - gsmtp
Ein extra App password hab ich erstellt.