email – Using Pine (Alpine) with GMail 2-Step Authentication

alpine-mailauthenticationemailimap

I always get a message:

IMAP Authentication canceled 

And then:

Retrying plain authentication after [ALERT] application-specific

When I look at my google security settings I can't find any option to create an application specific password to associate with Alpine on my laptop.

https://productforums.google.com/forum/#!topic/gmail/bSQZVxRIjb0

Best Answer

Do as recommended by Andreatsh in the comments.

Go to http://myaccount.google.com

Then "Sign-in & security" -> "Signin in to Google" -> "App password"

Once you create the one time password you will also have to run:

touch ~/.pine-passfile

This makes it so when you enter the gmail folder on Alpine you will be asked if you want to save the password.

Related Question