View Single Post
Old 08-12-2014, 05:08 PM   #1
jbuller
Junior Member
jbuller began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2014
Location: London
Device: Kindle 4.1
Unhappy Gmail test fails except when "Access for less secure apps" enabled

Hi

I'm trying to setup Calibre for the first time.
I've entered my Gmail details and getting the error message below when I test it. I got security alert emails from Google which suggested changing a setting to allow "Access for less secure apps". When I do this and test again in Calibre I get "Mail sent"!
I was suprised not find any other metion of this else where.
Obviously I'd rather not be vunerable so any suggestions?

My settings are smtp.gmail.com 465 SSL
Port 587 and TLS doesn't work either.


Code:
Traceback (most recent call last):
File "site-packages\calibre\gui2\wizard\send_email.py", line 173, in test_email_settings
File "site-packages\calibre\utils\smtp.py", line 135, in sendmail
File "site-packages\calibre\utils\smtplib.py", line 617, in login
SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtXn\n5.7.14 PHjm6Npb0J3JeUNrvqXYCzmiMsbBdmpKiM_Y6DKeavQRZtqu8cfv_KvIHr41R_SNbGtitI\n5.7.14 sE_AKqeNltMaPBowK8438bApB7HjCW2-90TMBkiM1SzF9BOd6lXqH3jxxEIMC7vcRiLPcQ\n5.7.14 Q6LnO-228sB7f2Jh9COaIQGNQzYkmHfja8jGm6Wirg1weLD8tBsO7l1GNddNBwhFY-Lj3f\n5.7.14 UbmxMTg> Please log in via your web browser and then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 r20sm60143126wik.0 - gsmtp')


Log:
connect: (u'smtp.gmail.com', 465)
connect: (u'smtp.gmail.com', 465)
reply: '220 mx.google.com ESMTP r20sm60143126wik.0 - gsmtp\r\n'
reply: retcode (220); Msg: mx.google.com ESMTP r20sm60143126wik.0 - gsmtp
connect: mx.google.com ESMTP r20sm60143126wik.0 - gsmtp
send: 'ehlo [192.168.11.2]\r\n'
reply: '250-mx.google.com at your service, [87.113.95.178]\r\n'
reply: '250-SIZE 35882577\r\n'
reply: '250-8BITMIME\r\n'
reply: '250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-CHUNKING\r\n'
reply: '250 SMTPUTF8\r\n'
reply: retcode (250); Msg: mx.google.com at your service, [87.113.95.178]
SIZE 35882577
8BITMIME
AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
ENHANCEDSTATUSCODES
CHUNKING
SMTPUTF8
send: 'AUTH PLAIN AGphbWVzLnAuYnVsbGVyQGdtYWlsLmNvbQBaSzFmd2xiMS5wYjA=\r\n'
reply: '534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtXn\r\n'
reply: '534-5.7.14 PHjm6Npb0J3JeUNrvqXYCzmiMsbBdmpKiM_Y6DKeavQRZtqu8cfv_KvIHr41R_SNbGtitI\r\n'
reply: '534-5.7.14 sE_AKqeNltMaPBowK8438bApB7HjCW2-90TMBkiM1SzF9BOd6lXqH3jxxEIMC7vcRiLPcQ\r\n'
reply: '534-5.7.14 Q6LnO-228sB7f2Jh9COaIQGNQzYkmHfja8jGm6Wirg1weLD8tBsO7l1GNddNBwhFY-Lj3f\r\n'
reply: '534-5.7.14 UbmxMTg> Please log in via your web browser and then try again.\r\n'
reply: '534-5.7.14 Learn more at\r\n'
reply: '534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 r20sm60143126wik.0 - gsmtp\r\n'
reply: retcode (534); Msg: 5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtXn
5.7.14 PHjm6Npb0J3JeUNrvqXYCzmiMsbBdmpKiM_Y6DKeavQRZtqu8cfv_KvIHr41R_SNbGtitI
5.7.14 sE_AKqeNltMaPBowK8438bApB7HjCW2-90TMBkiM1SzF9BOd6lXqH3jxxEIMC7vcRiLPcQ
5.7.14 Q6LnO-228sB7f2Jh9COaIQGNQzYkmHfja8jGm6Wirg1weLD8tBsO7l1GNddNBwhFY-Lj3f
5.7.14 UbmxMTg> Please log in via your web browser and then try again.
5.7.14 Learn more at
5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 r20sm60143126wik.0 - gsmtp
jbuller is offline   Reply With Quote