Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus, gmail and 2 factor authentication not working
@ 2012-07-05  3:34 Jonathan Wheelhouse
  2012-07-05 23:48 ` Jonathan Wheelhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wheelhouse @ 2012-07-05  3:34 UTC (permalink / raw)
  To: info-gnus-english

Hi

I have successfully been accessing my gmail account via IMAP from GNUS.
Recently, however I enabled 2 factor authentication on my gmail account
after reading
http://www.codinghorror.com/blog/2012/04/make-your-email-hacker-proof.html
.

With 2 factor authentication you can get gmail to generate an
application specific password.  So I did that for GNUS.  I entered this
password into ~/.imap-authinfo file.  Here are the relevant bits of the
.gnus and .imap-authinfo files.

------------------------------------------------------------------------
;; .gnus file relevant bit
;; ... gmail via imap
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
						     (nnimap-address "imap.gmail.com")
						     (nnimap-server-port 993)
						     (nnimap-authinfo-file "~/.imap-authinfo")
						     (nnimap-stream ssl)))
(setq imap-ssl-program "openssl s_client -quiet -ssl3 -connect %s:%p")
(setq imap-log t)

;; .imap-authinfo file.  <password> is replaced by the gmail generated password
machine imap.gmail.com login jonathan.wheelhouse@gmail.com password <password> port 993
------------------------------------------------------------------------

However, I cannot now access gmail via GNUS.  

The message I get is this:

Warning: Opening nnimap server on gmail...failed: NO (ALERT)
Application-specific password required:
http://support.google.com/accounts/bin/answer.py?answer=185833
(Failure);

Any ideas on how to fix this?

--
Jonathan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gnus, gmail and 2 factor authentication not working
  2012-07-05  3:34 gnus, gmail and 2 factor authentication not working Jonathan Wheelhouse
@ 2012-07-05 23:48 ` Jonathan Wheelhouse
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wheelhouse @ 2012-07-05 23:48 UTC (permalink / raw)
  To: info-gnus-english

Jonathan Wheelhouse <jonathan.wheelhouse@gmail.com> writes:

> Hi
>
> I have successfully been accessing my gmail account via IMAP from GNUS.
> Recently, however I enabled 2 factor authentication on my gmail account
> after reading
> http://www.codinghorror.com/blog/2012/04/make-your-email-hacker-proof.html

[snip]

>
> With 2 factor authentication you can get gmail to generate an
> application specific password.  So I did that for GNUS.  I entered this
> password into ~/.imap-authinfo file.  Here are the relevant bits of the
> .gnus and .imap-authinfo files.
>
> The message I get is this:
>
> Warning: Opening nnimap server on gmail...failed: NO (ALERT)
> Application-specific password required:
> http://support.google.com/accounts/bin/answer.py?answer=185833
> (Failure);
>
> Any ideas on how to fix this?

Never mind, I fixed it.  GNUS was getting my credentials from an
~/.authinfo file and ignoring the ~/.imap-authinfo file.  So I stuck the
application specific password in the authinfo file.  I can now read my
gmail via GNUS again.

--
Jonathan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-05 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05  3:34 gnus, gmail and 2 factor authentication not working Jonathan Wheelhouse
2012-07-05 23:48 ` Jonathan Wheelhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).