can not setup gmail account in K-9

20,382 views
Skip to first unread message

Tony M

unread,
Mar 1, 2015, 4:29:00 PM3/1/15
to k-9-...@googlegroups.com
I have been tinkering with K-9 mail and like it. There seems to be a lost of settings so I will have to learn it
Big problem is that I can not get it to add my gmail account. No matter what I do this error pops up when I try to add it. I am positive my account info is correct.

Setup could not finish
Username or password incorrect.
(Command: AUTHENTICATE PLAIN;response: #2# [NO,[ALERT], Please log in via your web browser:
http://support.google.com/mail/accou...y?answer=78754 (Failure)])

cketti

unread,
Mar 2, 2015, 9:20:10 AM3/2/15
to k-9-...@googlegroups.com
Just click the link and work through the bullet points. My guess is you need to "allow less secure apps access".

John F. Eldredge

unread,
Mar 2, 2015, 7:51:09 PM3/2/15
to k-9-...@googlegroups.com

From my experience, this means that, at some point in the past, you configured Gmail to verify when it sees a new device trying to connect to your email account.  It should send you a numeric code by text message or automated voice call (depending on which you had previously selected), and then your Android device should show you a web page and ask you to enter the numeric code you were sent.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that." Dr. Martin Luther King, Jr.

--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com
To unsubscribe, email k-9-mail+u...@googlegroups.com
To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

---
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tony M

unread,
Mar 2, 2015, 7:53:18 PM3/2/15
to k-9-...@googlegroups.com

I disabled that feature. Is there a way I can check to be sure it is set correctly?

John F. Eldredge

unread,
Mar 2, 2015, 8:22:11 PM3/2/15
to k-9-...@googlegroups.com

As I recall, you need to log into Google from a desktop or laptop, then check your account settings. It could be that it didn't save the change.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that." Dr. Martin Luther King, Jr.

Tony M

unread,
Mar 2, 2015, 8:44:08 PM3/2/15
to k-9-...@googlegroups.com

I looked and the two step verification is off
What other setting an I looking for?

John F. Eldredge

unread,
Mar 2, 2015, 11:03:17 PM3/2/15
to k-9-...@googlegroups.com

Unfortunately, that is the only thing I can think of. Does anyone else have a suggestion?

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that." Dr. Martin Luther King, Jr.

Voytek

unread,
Mar 3, 2015, 8:25:52 PM3/3/15
to k-9-...@googlegroups.com

No idea, though, I do have a gmail that I clear with K9, all I can offer is to check what mine is set (when I get out of the car)(passenger side)

Outgoing server settings
SMTP server
smtp.gmail.com
Security
SSL/TLS (always) A
Port
465

Require sign—in.
Authentication

AUTOMATIC A
Username
x...@gmail.com
Password

Incoming server settings
Username
x...@gmail.com
Password
IMAP server
imap.gmail.com
Security
SSL/TLS (always) A
Authentication
PLAIN A
Port
993
B Auto—detect IMAP namespace
IMAP path prefix
l—l Show onlv subscribed folders

--
Sent from Kaiten Mail. Please excuse my brevity.

Tony

unread,
Mar 3, 2015, 9:14:19 PM3/3/15
to k-9-...@googlegroups.com

Those are the settings that I used for manual config and it didn't work
It seems that no matter what I try I get that error

Seth H Holmes

unread,
Mar 4, 2015, 12:02:35 AM3/4/15
to k-9-...@googlegroups.com, Tony
Have you verified that you have enabled imap for the gmail account?
--
Seth H Holmes
Sent from my Nexus 7 with K-9 Mail. Please excuse my brevity.

Tony

unread,
Mar 4, 2015, 8:11:02 AM3/4/15
to Seth H Holmes, k-9-...@googlegroups.com

Imap and pop are enabled

Peter Holsberg

unread,
Mar 4, 2015, 10:22:01 AM3/4/15
to k-9-...@googlegroups.com
Shouldn't it be one or the other? IMAP or POP/SMTP?

Tony wrote on 3/4/2015 8:10 AM:
> Imap and pop are enabled
>
> On Mar 4, 2015, at 12:02 AM, Seth H Holmes <sho...@route-fu.net
> <mailto:sho...@route-fu.net>> wrote:
>
> Have you verified that you have enabled imap for the gmail account?

--
Peter J. Holsberg

Tony

unread,
Mar 4, 2015, 10:46:58 AM3/4/15
to k-9-...@googlegroups.com
Not sure.  But it didn't seem to make a difference because K-9 will not work either way

John F. Eldredge

unread,
Mar 4, 2015, 12:12:44 PM3/4/15
to k-9-...@googlegroups.com
Well, the choice is whether to use IMAP or POP3 for inbound mail. SMTP will
be used for sending mail, regardless.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot
drive out hate; only love can do that." Dr. Martin Luther King, Jr.



Tony

unread,
Mar 4, 2015, 12:29:35 PM3/4/15
to k-9-...@googlegroups.com
I like using POP3 for this account because the messages are so important.  This way there is less chance that I will accidentally delete messages from the server.
Since POP3 normally doesn't do this, any action I take on my phone will not effect the messages on the server.  They will only be deleted when I purposely do it online.

On Wed, Mar 4, 2015 at 12:12 PM, John F. Eldredge <jo...@jfeldredge.com> wrote:
Well, the choice is whether to use IMAP or POP3 for inbound mail. SMTP will be used for sending mail, regardless.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that." Dr. Martin Luther King, Jr.



On March 4, 2015 9:21:08 AM Peter Holsberg <pj...@pobox.com> wrote:

Shouldn't it be one or the other? IMAP or POP/SMTP?

Tony wrote on 3/4/2015 8:10 AM:
> Imap and pop are enabled
>
> On Mar 4, 2015, at 12:02 AM, Seth H Holmes <sho...@route-fu.net
> <mailto:sho...@route-fu.net>> wrote:
>
>     Have you verified that you have enabled imap for the gmail account?

--
Peter J. Holsberg

--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com

To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

---
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com

To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

--- You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+unsubscribe@googlegroups.com.

Tanstaafl

unread,
Mar 4, 2015, 12:44:07 PM3/4/15
to k-9-...@googlegroups.com
???

This is backwards. The default for every POP3 client I've ever
configured is TO DELETE messages from the server after downloading them.

You have to manually make a specific config change to NOT delete them.

But this has always been problematic with POP3, as it was never designed
to 'leave messages on server', that 'feature' was an afterthought.

IMAP is the way to go in the modern world.

Richard

unread,
Mar 4, 2015, 1:33:06 PM3/4/15
to k-9-...@googlegroups.com
... and, there's a K9 IMAP option under "fetching mail" that lets
you explicitly control this:

When I delete a message
- do not delete on server
- delete from server
- mark as read on server

selecting either the first or third will hold the message on the
server.
------------ End Original Message ------------


Tony

unread,
Mar 4, 2015, 1:36:54 PM3/4/15
to k-9-...@googlegroups.com
Is there a way to also keep a copy of inbox messages in K-9?
I like the POP3 doing that in case I accidentally delete a message on the server


--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com
To unsubscribe, email k-9-mail+u...@googlegroups.com

To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

---
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.

Richard

unread,
Mar 4, 2015, 1:42:24 PM3/4/15
to k-9-...@googlegroups.com
yes. the option above the "when i delete a message" one is "sync
server deletions" -- with a checkbox.

- Richard

Seth Holmes

unread,
Mar 4, 2015, 1:57:07 PM3/4/15
to k-9-...@googlegroups.com
It's probably a corollary to Godwin's law that all discussions of e-mail
configuration eventually turn into a discussion of IMAP vs POP3.

FWIW: You can enable both IMAP and POP3 support for your GMAIL account.

For POP3 you have the following options:

1. Enable POP for all mail (even mail that's already been downloaded)
Enable POP for mail that arrives from now on
Disable POP

2. When messages are accessed with POP:
keep Gmail's copy in the Inbox
mark Gmail's copy as read
archive Gmail's copy
delete Gmail's copy

You should have the following configured:

Incoming Mail (POP3) Server - requires SSL: pop.gmail.com
Use SSL: Yes
Port: 995
Outgoing Mail (SMTP) Server - requires TLS or SSL: smtp.gmail.com
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465
Server timeouts: Greater than 1 minute, 5 minutes recommended
Account Name or User Name: your full email address (including @gmail.com
or @your_domain.com)

So since you're getting an authentication error, I'm going to a wild
stab and guess that you're "Account Name" is set to just the username
portion of the e-mail address. It needs to be the full e-mail address to
authenticate.

I strongly suggest setting up 2-factor authentication and creating an
application specific password for authentication in K-9. Not because I
don't trust the developers of K-9, but because I don't trust anybody.

Another thing to factor into the POP3 equation is that if you are
archiving any e-mail as you receive it via filter, you probably will not
be able to download it via POP3 as it will only get messages in the Inbox.

--
Seth H Holmes
sho...@route-fu.net

Tony

unread,
Mar 4, 2015, 2:07:33 PM3/4/15
to k-9-...@googlegroups.com
I have both pop and imap enabled on the gmail account.

I tried two-step verification in the past and it freaked out my other apps and logging in on the pc.  So I am not going to mess with that

I checked and made sure my account name is the entire gmail email address with the @gmail and all

--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com

To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

--- You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+unsubscribe@googlegroups.com.

Tanstaafl

unread,
Mar 4, 2015, 2:59:34 PM3/4/15
to k-9-...@googlegroups.com
On 3/4/2015 2:07 PM, Tony <what...@gmail.com> wrote:
> I have both pop and imap enabled on the gmail account.
>
> I tried two-step verification in the past and it freaked out my other
> apps and logging in on the pc. So I am not going to mess with that
>
> I checked and made sure my account name is the entire gmail email
> address with the @gmail and all

And you have enabled 'Allow less secure applications' to auth?

Tony

unread,
Mar 4, 2015, 3:08:11 PM3/4/15
to k-9-...@googlegroups.com
I am not comfortable enabling "less secure access". 

--
--
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to k-9-...@googlegroups.com
To unsubscribe, email k-9-mail+u...@googlegroups.com

To report an issue with K-9 Mail, visit http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

---
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.

John F. Eldredge

unread,
Mar 4, 2015, 3:39:18 PM3/4/15
to k-9-...@googlegroups.com

On the Gmail web site, there is also an option to generate an "application-specific password". This produces a lengthy password that bypasses the two-factor requirement.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that." Dr. Martin Luther King, Jr.

Tanstaafl

unread,
Mar 4, 2015, 3:39:50 PM3/4/15
to k-9-...@googlegroups.com
I am not sure K9Mail will work without doing so...

On 3/4/2015 3:08 PM, Tony <what...@gmail.com> wrote:
> I am not comfortable enabling "less secure access".
>
> On Wed, Mar 4, 2015 at 2:59 PM, Tanstaafl <tans...@libertytrek.org
> <mailto:tans...@libertytrek.org>> wrote:
>
> On 3/4/2015 2:07 PM, Tony <what...@gmail.com

Tony

unread,
Mar 4, 2015, 3:58:48 PM3/4/15
to k-9-...@googlegroups.com
From the google documentation it appears that this only works with two-step verification.  I am not using two-step verification

John F. Eldredge

unread,
Mar 4, 2015, 4:19:00 PM3/4/15
to k-9-...@googlegroups.com
The "application-specific password" option on Gmail's site is a work-around.

--
John F. Eldredge -- jo...@jfeldredge.com
" cannot drive out darkness; only light can do that. Hate cannot drive out
hate; only love can do that." Dr. Martin Luther King, Jr.



Seth Holmes

unread,
Mar 4, 2015, 5:05:26 PM3/4/15
to k-9-...@googlegroups.com
On 3/4/15 3:39 PM, John F. Eldredge wrote:
> On the Gmail web site, there is also an option to generate an
> "application-specific password". This produces a lengthy password that
> bypasses the two-factor requirement.

To use it, I believe you need to have two-factor turned on, unless
something changed.

John F. Eldredge

unread,
Mar 4, 2015, 5:21:13 PM3/4/15
to k-9-...@googlegroups.com
What I meant was, it allows K-9 to function with the existing program
logic, as it would with a conventional password.

--
John F. Eldredge -- jo...@jfeldredge.com
"Darkness cannot drive out darkness; only light can do that. Hate cannot
drive out hate; only love can do that." Dr. Martin Luther King, Jr.



Racoon Fox

unread,
Mar 10, 2015, 9:40:41 AM3/10/15
to k-9-...@googlegroups.com
I cant install k9 now. The new vercion alwayse crashed install, and if i install manual, it installs. But i need to choose unsecurity password, otherwise not installed.. after that, all received, but sending doesn't work. While default mail program works properly, so, i think that is not a server or my device problem.
If you like, i can send log or elthe need, just say, where log keeping.

JaeSeong Jeong

unread,
Oct 26, 2015, 8:50:28 PM10/26/15
to K-9 Mail, what...@gmail.com
I expirienced same problem.
My resolution was like that. I'm Korean, so the title of menu is somewhat different from your country.
go to Accout setting.
->"Log in and Security"
-> "Linked App and site"
-> "Perssion or Not of Low-level security app"   ; USE!


2015년 3월 2일 월요일 오전 6시 29분 0초 UTC+9, Tony M 님의 말:

Josh Brooks-Budhoo

unread,
Nov 10, 2015, 2:55:07 PM11/10/15
to K-9 Mail
Just to go back to the original question on this post, in case it's still open, here's a method I've found to work in the past:

1. Sign out of all Google accounts (or open a web browser that has no Google accounts signed in)
2. Navigate to http://www.google.com/accounts/DisplayUnlockCaptcha and sign in using the account you're having trouble with
3. Follow any remaining on-screen prompts to confirm that recent blocked login attempts were actually initiated by you
4. Repeat the login attempt on the blocked device (i.e. from K-9)

On Monday, March 2, 2015 at 9:20:10 AM UTC-5, cketti wrote:
On 01.03.2015 22:29, Tony M wrote:
I have been tinkering with K-9 mail and like it. There seems to be a lost of settings so I will have to learn it
Big problem is that I can not get it to add my gmail account. No matter what I do this error pops up when I try to add it. I am positive my account info is correct.

Setup could not finish
Username or password incorrect.
(Command: AUTHENTICATE PLAIN;response: #2# [NO,[ALERT], Please log in via your web browser:
http://support.google.com/mail/accou...y?answer=78754 (Failure)])


Just click the link and work through the bullet points. My guess is you need to "allow less secure apps access".

alexanderb...@gmail.com

unread,
Jul 8, 2016, 5:51:20 AM7/8/16
to K-9 Mail, what...@gmail.com
Have tried all this but sadly still no luck! The emails were coming in absolutely fine for the past few months then all of a sudden have stopped because of this 'Command: Authenticate Plain' error. Will have to seek an alternative app

Philip Whitehouse

unread,
Jul 8, 2016, 6:10:54 AM7/8/16
to alexanderb...@gmail.com, k-9-...@googlegroups.com, what...@gmail.com
I'm hoping to get the 'more secure' proper Google authentication stuff merged at some point which will fix this sort of issue.

No ETA unfortunately because life has been super busy as of late.

-Philip Whitehouse
>> <http://support.google.com/mail/accounts/bin/answer.py?answer=78754>
>> (Failure)])
>>
>
>--
>--
>You received this message because you are subscribed to the K-9 Mail
>Users List.
>To post to this group, send email to k-9-...@googlegroups.com
>To unsubscribe, email k-9-mail+u...@googlegroups.com
>To report an issue with K-9 Mail, visit
>http://code.google.com/p/k9mail/issues/list
>For more options, visit this group at
>http://groups.google.com/group/k-9-mail
>
>---
>You received this message because you are subscribed to the Google
>Groups "K-9 Mail" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to k-9-mail+u...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Best regards,

Philip Whitehouse

nukem...@gmail.com

unread,
May 1, 2018, 7:38:26 PM5/1/18
to K-9 Mail
Josh Brooks,

THANK YOU so much, your 4 steps below absolutely worked.  I tried the "DisplayUnlockCaptcha" while logged in, did not work.  Followed your steps, and it worked.

Thanks again.

In general, and on a side note, I am not a big fan of Apple products, but when my kids devices have had issues, Apple support has been great.  Where is Google support like this???  If it wasn't for the luck of finding Josh's post, I would have been helpless.

My opinion and experience.

David W. Jones

unread,
May 1, 2018, 7:55:28 PM5/1/18
to k-9-...@googlegroups.com
Well, with Apple, you have one company, one product. Apple support outside of their 'genius' bar is highly regarded. But they exert rigid control over iOS and hardware, so it's much easier.

With Google/Android, you have Android + a bunch of different phone/tablet makers (who each customize and/or mangle Android to suit their individual goals) + a much larger plethora of 3rd party app makers.

Asking Google to sort out problems that might be due to something Samsung or LG or the app maker tweaked is asking a lot.

Just my opinion. I never encountered your problem with adding GMail to K-9, probably because I haven't logged into my Google account via the web in years.

David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

nukem...@gmail.com

unread,
May 2, 2018, 1:32:53 AM5/2/18
to K-9 Mail
The thing is, I have two other gmail accounts that have always worked fine on K9.  They were installed at very different times.  This 3rd gmail, however, would not authenticate.  Given the advice I used to get it to work, I would suggest google has made a change that has affected how the K9 app is allowed to authenticate, and not vice versa.

Believe you me, I'm no fan of Apple, but you can at least call and talk to Apple tech support.  I couldn't even find an email to send a help request to google tech support.

And it's just not that.  I use a few google products, I'm not particularly thrilled with any of them.  Google just does not seem to polish their products, at least in my view.  Hangouts for example, which my family uses alot, is glitchy and laggy.  The gmail web interface (which I seldom use, but other family members do) is unintuitive, unattractive, reminds me of the crappy webmail my ISP uses.

Maybe I'm just too picky.  I've been accused of that. :)

David W. Jones

unread,
May 2, 2018, 3:42:33 AM5/2/18
to K-9 Mail
It's possible Google changed something. They've been known to move fast
and break things. Also, they probably don't have K-9 on their radar
anymore than they do other Android mail clients outside of their own
products (and possibly the Android version of Outlook, big corporations
tend to like other big corporations, for some reason).

I agree, Apple does really good tech support. When I recommend computers
for non-technical people, I recommend Apple.

I've never tried to email Google about anything, figuring that if I
can't find a solution with a search engine, there probably isn't a known
solution available.

I've used Google Hangouts once - worked with a team of college students
on a project and that's what they used. Otherwise, I don't use it at all.

Then webmail! I hate webmail. I've never found a webmail that wasn't
clunky, slow and difficult to use. (Note: My ISP's webmail is worse. But
I understand that a number of smaller ISPs use a branded version of
GMail for their webmail.) I'm a dinosaur: give me a standalone mail
client like K-9, Thunderbird, PMail, even clunky Outlook instead of a
webmail interface. Even a text email client like Alpine, PINE or old
moldy Elm!

So you're not alone, I guess you can call me picky, too. :)
>> <http://support.google.com/mail/accounts/bin/answer.py?answer=78754>
>> (Failure)])
>>
>
> Just click the link and work through the bullet points.
> My guess is you need to "allow less secure apps access".
>
>
> Well, with Apple, you have one company, one product. Apple support
> outside of their 'genius' bar is highly regarded. But they exert
> rigid control over iOS and hardware, so it's much easier.
>
> With Google/Android, you have Android + a bunch of different
> phone/tablet makers (who each customize and/or mangle Android to
> suit their individual goals) + a much larger plethora of 3rd party
> app makers.
>
> Asking Google to sort out problems that might be due to something
> Samsung or LG or the app maker tweaked is asking a lot.
>
> Just my opinion. I never encountered your problem with adding GMail
> to K-9, probably because I haven't logged into my Google account via
> the web in years.
>
> David W. Jones
> gnome...@gmail.com
> wandering the landscape of god
> http://dancingtreefrog.com
>
> Sent from my Android device with F/LOSS K-9 Mail.


--

The Sys Eng

unread,
Aug 4, 2018, 12:41:51 PM8/4/18
to K-9 Mail
I had a problem with K9 not authenticating to fetch or send email.  I logged into google mail from my laptop
Then I change the Allow less secure apps setting to ON.


Once you have logged into gmail from a laptop
Goto Settings
Accounts & Imports
Under Change Account Settings: choose Other Google Account Settings
Sign-In & Security
Apps with account access
Turn Allow less secure apps: ON


On Sunday, March 1, 2015 at 3:29:00 PM UTC-6, Tony M wrote:
I have been tinkering with K-9 mail and like it. There seems to be a lost of settings so I will have to learn it
Big problem is that I can not get it to add my gmail account. No matter what I do this error pops up when I try to add it. I am positive my account info is correct.

Setup could not finish
Username or password incorrect.
(Command: AUTHENTICATE PLAIN;response: #2# [NO,[ALERT], Please log in via your web browser:
Reply all
Reply to author
Forward
0 new messages