18

I'm trying to setup my Gmail account in K-9 Mail, but when I'm setting up the incoming server, I keep getting the error: "Wrong username or password". When I'm trying to set up an outgoing server, I get an error which directs me to the two-step verification at Google.

I have 2-step verification configured on my Google account, but can't seem to get this into K-9 Mail. I've searched all over and tried following different guides, e.g. this question, and I've also tried to change the password on my Google account but nothing helped.

How can I properly configure K-9 Mail for my Gmail account with 2-step verification?

17

IMAP clients generally need to use application-specific passwords in order to access accounts that use 2-step verification. You'll need to generate a new app-specific password, then use that to set up your incoming/outgoing servers instead of using your regular account password. Google's support page (linked above) includes instructions for doing this. Summarized, the procedure is:

How to generate an application-specific password

  1. Visit your Google Account settings page.
  2. On the left, click Security.
  3. Under the "2-step verification" topic, click Manage your application specific passwords.
  4. Under the Application-specific passwords section, enter a descriptive name for the application you want to authorize, then click “Generate application-specific password". You'll then see the application-specific password (ASP) you just created. You'll also see the name you wrote in for the device and a link to Revoke -- or cancel -- the code.
  5. When you sign in to an application requiring an ASP, enter your ASP in the password field, and make sure you check the "Remember password" option if you want the application to remember the code.
  • Thanks, it was becoming a mystery. Unfortunately, it seems that you may only have the application specific password when you are using 2xFactor-authentication. That prevents two people sharing the same mail folders. Still looking for how to access that emai login. – will Aug 21 at 16:07
1

I had a hard time to resolve the same problem because my Gmail accound wasn't correctly configured with 2-step verification. In case it might help somebody, here is how to do that :

Turn on 2-Step Verification

  1. Go to the 2-Step Verification page. You might have to sign in to your Google Account.
  2. Select Get started.
  3. Follow the step-by-step setup process.
    • You will be sent an SMS with a code, and you have to enter the code you just received by SMS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.