Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-25-2019, 11:32 PM   #1
LQ Newbie
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
Question Kontact/KMail cannot connect to Google IMAP accounts

I have been happily using Kontact (which in turn seems to use KMail) to connect to my GMail account via IMAP, until recently.

I had to fight to get Kontact working after a disto upgrade*, and as part of my troubleshooting efforts I removed my GMail IMAP accounts from Kontact. I think I've got the original Kontact problem sorted, but now I can't re-add my GMail accounts. When I trying to do so, an oauth (I think?) sequence kicks off from Google and prompts me for which Google account I want to use, and prompts me for my password. After putting my password into this oauth prompt, I get the following message:

Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.

I've googled around for other kontact users suffering from the same problem but come up empty. I have found search results for that message in general (not referencing Kontact), which says that the author of the application has to verify it with Google... I'm not sure if I need to fill out a bug report with my distro and/or the Kontact project; or if maybe there's some kind of oauth-related cookie on my system that I fudged up during my many attempts to get things working; or if tripped some kind of attempt limit in Google. Any advice?

*Upgrading to Debian Buster from Debian Stretch caused Kontact to reliably hard freeze my box. I found that akonadi was also producing errors. The ultimate cause seems to have been akonadi being configured to use MySQL, Debian dropping MySQL in favor of MariahDB in Debian Buster, and my upgrade somehow resulting in MySQL being uninstalled but without getting MariahDB installed in its place. Installing MariahDB has fixed akonadi and the freeze issue.

P.S.: I tried setting up Evolution to see if it would have better luck. I was able to set up my GMail IMAP accounts with no problem, which makes me think it wasn't some kind of attempt limit in Google unless such a limit was somehow smart enough to differentiate between the two programs.

Last edited by redbot; 07-25-2019 at 11:35 PM. Reason: Evolution Note
Old 07-26-2019, 12:16 AM   #2
LQ Newbie
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I was able to connect to the GMail IMAP by manually modifying the account settings in Kontact/KMail. Changing the Authentication method to "PLAIN" did the trick! It had been set to "Gmail".

I didn't have to modify any of the other settings from how Kontact/KMail's (Akonadi's?) new account wizard had, but I'll include them here in case they help someone. Replace the stuff between angle brackets, of course.

(Under Kontact/KMail's "General" tab)
IMAP Server:
Username: <>
Password: <your gmail password>

(Under Kontact/Kmail's "Advanced" tab)
Encryption: SSL/TLS
Port: 993
Authentication: PLAIN


debian, gmail, imap, kmail, kontact

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kmail with google and hotmail accounts receive all SENT messages in INBOX.- nomikos Linux - Desktop 0 03-30-2011 03:30 PM
kontact setup accounts windsurfer Linux - Software 6 07-04-2007 04:13 PM
Kmail/Kontact or my mailserver problem? duffboygrim Linux - General 0 05-21-2004 04:32 PM
kontact 0.8 / kmail 1.6.1 server Iridesce Linux - Software 3 04-07-2004 06:00 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration