Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email notification problem #3

Closed
Feuxxxeu opened this issue Oct 14, 2015 · 3 comments
Closed

Email notification problem #3

Feuxxxeu opened this issue Oct 14, 2015 · 3 comments

Comments

@Feuxxxeu
Copy link

Hello,
I am behind a router, so the raspberry pi B has access to internet.
Please advise
I've been trying with gmail account:
2015-10-13 20:49:17: [sendmail] ERROR: failed to send mail: (534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsfE\n5.7.14 dovOr0AipLQF0Pp9SxNPSxSnf3QRcCAIozB--blrclJaBDd50LWA-gBl4ALCJHj4T8i35O\n5.7.14 I-Xa7llM3OhcYelEQCZYSJAKHDlQ5bIxDlOq5EflSY6EM1LcSO8iiuiIPveZWeOIyv28mf\n5.7.14 VPEvAXdLC6oRtzybdyzjdeSsy8bGQnJ45SsKYgR1N9sKcMX3_YPhHAuZBXELPY6xwbmX6i\n5.7.14 5ypMmdBHrV0jlq_eQtsobBtzeEjY> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 gt4sm16082779wib.21 - gsmtp')
Traceback (most recent call last):
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 178, in on_message
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 54, in send_mail
File "/usr/lib/python2.7/smtplib.py", line 622, in login
SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsfE\n5.7.14 dovOr0AipLQF0Pp9SxNPSxSnf3QRcCAIozB--blrclJaBDd50LWA-gBl4ALCJHj4T8i35O\n5.7.14 I-Xa7llM3OhcYelEQCZYSJAKHDlQ5bIxDlOq5EflSY6EM1LcSO8iiuiIPveZWeOIyv28mf\n5.7.14 VPEvAXdLC6oRtzybdyzjdeSsy8bGQnJ45SsKYgR1N9sKcMX3_YPhHAuZBXELPY6xwbmX6i\n5.7.14 5ypMmdBHrV0jlq_eQtsobBtzeEjY> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 gt4sm16082779wib.21 - gsmtp')
2015-10-13 20:50:06: [sendmail] ERROR: failed to send mail: (534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbv-0\n5.7.14 VUSJavXzBie_XgnuiogePombkrUWjLQ-dDhfhbiSCaPbFFESUkAXdNo0EwigP84wlWwdDx\n5.7.14 NStXJViC_qHv_XL3zLU-uvVsXIrfpstVbs0pv9nUGwYEbgZoqSzqSUv9_n7Jk41R5GCPwo\n5.7.14 s1KWbHIOswJAaZQO9G1kQ7ez_E1h9LIeSzUtjZ6YqWONt7eaLNPPdG4x4XDnyBDPwyEiiy\n5.7.14 svNKCff8fm35Gfr5_q8_QLcULTtg> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 ub7sm3945435wib.17 - gsmtp')
Traceback (most recent call last):
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 178, in on_message
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 54, in send_mail
File "/usr/lib/python2.7/smtplib.py", line 622, in login
SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbv-0\n5.7.14 VUSJavXzBie_XgnuiogePombkrUWjLQ-dDhfhbiSCaPbFFESUkAXdNo0EwigP84wlWwdDx\n5.7.14 NStXJViC_qHv_XL3zLU-uvVsXIrfpstVbs0pv9nUGwYEbgZoqSzqSUv9_n7Jk41R5GCPwo\n5.7.14 s1KWbHIOswJAaZQO9G1kQ7ez_E1h9LIeSzUtjZ6YqWONt7eaLNPPdG4x4XDnyBDPwyEiiy\n5.7.14 svNKCff8fm35Gfr5_q8_QLcULTtg> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 ub7sm3945435wib.17 - gsmtp')
2015-10-13 20:51:43: [sendmail] ERROR: failed to send mail: [Errno 97] Address family not supported by protocol

And Yahoo Account:
2015-10-14 07:10:45: [sendmail] ERROR: failed to send mail: Connection unexpectedly closed: timed out
Traceback (most recent call last):
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 178, in on_message
File "/home/ccrisan/motioneyeos/output/raspberrypi/target/usr/lib/python2.7/site-packages/motioneye/sendmail.py", line 49, in send_mail
File "/usr/lib/python2.7/smtplib.py", line 256, in init
File "/usr/lib/python2.7/smtplib.py", line 317, in connect
File "/usr/lib/python2.7/smtplib.py", line 365, in getreply
SMTPServerDisconnected: Connection unexpectedly closed: timed out

Also with my ISP account, all with or without TLS, tried ports 25, 465 and 587.

@ccrisan
Copy link
Collaborator

ccrisan commented Oct 14, 2015

@Feuxxxeu
Copy link
Author

Thank you very much !
2015-10-14 19:50:38: [sendmail] INFO: email sent
It works with gmail now.
I had to go to https://www.google.com/settings/security/lesssecureapps to allow less secure apps to be used.
Then https://accounts.google.com/DisplayUnlockCaptcha to unlock the next try of a non-secure app smtp send
This is a little disturbing to leave this less secure apps option on, i'll continue fiddling with other stmp relays.

@ccrisan ccrisan closed this as completed Oct 22, 2015
@psts
Copy link

psts commented Oct 24, 2015

I have 2-step verification turned on, on my Gmail account. Then you can issue specific app passwords that you can use for things like this. Works like a charm and highly secure.

ccrisan pushed a commit that referenced this issue Sep 29, 2019
Add fixes for some of the build failures caused by strict-overflow
warnings. Patches #1, #2, and #4 are upstream. Patch #3 is pending
upstream.

Fixes:
http://autobuild.buildroot.net/results/923/9239f230629ca4e381af5e8f43989997d9bfde99/
http://autobuild.buildroot.net/results/618/6187b92bcdfd9281683c37906ae74f2e0c5e6d0e/
http://autobuild.buildroot.net/results/9eb/9eb5ed92a923f0c038e3d913289eddc1cda1b62f/

Cc: Scott Fan <fancp2007@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
ccrisan pushed a commit that referenced this issue Sep 29, 2019
Add patches fixing a number of build issues with uClibc. The issue fixed
in patch #2 has been reported upstream. Patch #3 has been suggested by
upstream but not applied yet.

Drop the _SUBDIR assignment. The configure script moved to top level
directory since upstream commit a947c49bec3 from 2014. This allows
AUTORECONF to find configure.ac.

Fixes:
http://autobuild.buildroot.net/results/801/801e2b2909363b5dcd9735362bb921e017569edc/
http://autobuild.buildroot.net/results/398/3984c6cdd3398645c8ad98bbe23af9090cf4bfcf/
http://autobuild.buildroot.net/results/632/632f93046f9cceffd9b604911542426c10967e0f/

Cc: Alexander Dahl <post@lespocky.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 35b72be)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants