imbox icon indicating copy to clipboard operation
imbox copied to clipboard

Google security prevents app from logging in

Open khalilleo opened this issue 9 years ago • 4 comments

Google keeps preventing the app on my server to log in, even when I marked the login as "I did", any idea how to solve this? (less secure apps option is enabled)

khalilleo avatar Oct 23 '16 08:10 khalilleo

Any error message or exception?

n3storm avatar Nov 15 '16 11:11 n3storm

so you have enabled access for less secure apps

aDotInTheVoid avatar Jun 02 '17 09:06 aDotInTheVoid

Example message in ipython:

/usr/local/lib/python3.6/site-packages/imbox/imap.py in connect(self, username, password)
     35 
     36     def connect(self, username, password):
---> 37         self.server.login(username, password)
     38         self.server.select()
     39         logger.debug("Logged into server {} and selected mailbox 'INBOX'"

/usr/local/lib/python3.6/imaplib.py in login(self, user, password)
    588         typ, dat = self._simple_command('LOGIN', user, self._quote(password))
    589         if typ != 'OK':
--> 590             raise self.error(dat[-1])
    591         self.state = 'AUTH'
    592         return typ, dat

error: b'[ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)'

pawamoy avatar Dec 05 '17 15:12 pawamoy

@Pawamoy allow less secure apps in gmail

ghost avatar Dec 05 '17 16:12 ghost